dm/docker-compose.yml

48 lines
1.0 KiB
YAML
Executable File

services:
base-dm:
build: ./docker/base-dm
image: base-dm
build-dmpython:
build: ./docker/build-dmpython
image: build-dmpython
depends_on:
- base-dm
build-frontend:
build: ./app-dm
image: build-frontend
flask-app:
build: ./python
restart: always
depends_on:
- base-dm
ports:
- '8000:8000'
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail localhost:8000/flask-health-check || exit 1"]
interval: 10s
timeout: 10s
retries: 3
command: gunicorn -w 3 -t 60 -b 0.0.0.0:8000 app:app
nginx-proxy:
build: ./docker/nginx
restart: always
volumes:
- ./docker/nginx/default.conf:/tmp/default.conf
environment:
- FLASK_SERVER_ADDR=flask-app:8000
ports:
- "80:80"
depends_on:
- flask-app
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail localhost:80/health-check || exit 1"]
interval: 10s
timeout: 10s
retries: 3
command: /app/start.sh