updated docker-compose
This commit is contained in:
@@ -1,10 +1,17 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
services:
|
services:
|
||||||
webserver:
|
hottub-webclient:
|
||||||
build: ./backend
|
image: hottub-webclient:latest
|
||||||
ports:
|
container_name: hottub-webclient
|
||||||
- "5000:5000"
|
entrypoint: python3
|
||||||
|
command: ["backend/main.py"]
|
||||||
volumes:
|
volumes:
|
||||||
- ./frontend:/frontend
|
- /path/to/hottub-webclient:/app
|
||||||
environment:
|
restart: unless-stopped
|
||||||
- PYTHONUNBUFFERED=1
|
working_dir: /app
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:5000/ | grep -q 200"]
|
||||||
|
interval: 300s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 3
|
||||||
|
start_period: 1s
|
||||||
Reference in New Issue
Block a user