Skip to content

Commit

Permalink
Print out docker compose logs on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
olekoliinyk committed Jan 30, 2025
1 parent a5520c9 commit fc0af4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions nat-lab/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,10 @@ services:
PYTHONUNBUFFERED: 1
healthcheck:
test: "curl --cacert /etc/ssl/server_certificate/test.pem https://api.nordvpn.com/v1/health"
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
networks:
internet:
ipv4_address: 10.0.80.86
Expand Down
2 changes: 1 addition & 1 deletion nat-lab/natlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def start():
)
except subprocess.CalledProcessError:
check_containers()
finally:
else:
check_containers()


Expand Down

0 comments on commit fc0af4d

Please sign in to comment.