aqi_monitor/docker-compose_testing.yml

35 lines
686 B
YAML
Raw Permalink Normal View History

services:
# backend flask
flask:
build: ./web
container_name: flask
restart: always
volumes:
- ./volume/flask/dyn:/app/static/dyn
environment:
- APP_NAME=FlaskAqi
- TZ=Asia/Bangkok
# - MAINTENANCE=True
expose:
- "8080"
# nginx infront of uwsgi
nginx:
build: ./nginx
container_name: backend_nginx
restart: always
ports:
- "80:80"
depends_on:
- flask
# backend postgres
postgres:
2023-05-13 06:53:41 +00:00
image: postgres:15
container_name: postgres
restart: always
volumes:
2023-05-13 06:53:41 +00:00
- ./volume/postgres15:/var/lib/postgresql/data/
env_file:
- ./env/postgres.env
expose:
- "5432"