separate docker-compose files for prod and testing
This commit is contained in:
parent
897a302314
commit
0cc942564f
|
@ -34,6 +34,7 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- APP_NAME=FlaskAqi
|
- APP_NAME=FlaskAqi
|
||||||
- TZ=Asia/Bangkok
|
- TZ=Asia/Bangkok
|
||||||
|
# - MAINTENANCE=True
|
||||||
expose:
|
expose:
|
||||||
- "8080"
|
- "8080"
|
||||||
# nginx infront of uwsgi
|
# nginx infront of uwsgi
|
|
@ -0,0 +1,36 @@
|
||||||
|
version: "3.2"
|
||||||
|
|
||||||
|
services:
|
||||||
|
# backend flask
|
||||||
|
flask:
|
||||||
|
image: bbilly1/lpb-air
|
||||||
|
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:
|
||||||
|
image: postgres:14
|
||||||
|
container_name: postgres
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./volume/postgres14:/var/lib/postgresql/data/
|
||||||
|
env_file:
|
||||||
|
- ./env/postgres.env
|
||||||
|
expose:
|
||||||
|
- "5432"
|
Loading…
Reference in New Issue