docker update
This commit is contained in:
@ -40,26 +40,34 @@ services:
|
||||
db:
|
||||
condition: service_healthy
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
command: >
|
||||
sh -c "python seed_user.py && gunicorn --bind 0.0.0.0:5000 --workers 2 --timeout 120 run:app"
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ./fuse-starter-v20.0.0
|
||||
dockerfile: Dockerfile.dev
|
||||
dockerfile: Dockerfile
|
||||
container_name: vending-frontend
|
||||
ports:
|
||||
- "8086:4200"
|
||||
volumes:
|
||||
- ./fuse-starter-v20.0.0:/project
|
||||
- /project/node_modules
|
||||
- "8086:80"
|
||||
networks:
|
||||
- vending-network
|
||||
depends_on:
|
||||
- backend
|
||||
backend:
|
||||
condition: service_healthy
|
||||
restart: always
|
||||
environment:
|
||||
- CHOKIDAR_USEPOLLING=true
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:80"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
networks:
|
||||
vending-network:
|
||||
|
||||
Reference in New Issue
Block a user