add prod/local compose
This commit is contained in:
parent
bd5b04eeae
commit
cd61c513c7
@ -1,6 +1,7 @@
|
||||
services:
|
||||
db:
|
||||
image: mariadb:lts
|
||||
command: "--skip-name-resolve=OFF"
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: ['CMD', 'healthcheck.sh', '--connect', '--innodb_initialized']
|
||||
@ -30,6 +31,7 @@ services:
|
||||
restart: always
|
||||
# Comment following line to use flask (1worker, dev), uncomment to use uwsgi (wsgi)
|
||||
#command: ["uwsgi", "--http", "0.0.0.0:8000", "--master", "-p", "4", "-w", "microblog:app"]
|
||||
container_name: backend
|
||||
environment:
|
||||
- MYSQL_USER=flasku
|
||||
#- MYSQL_PASSWORD=flaskp
|
||||
@ -127,4 +129,6 @@ volumes:
|
||||
|
||||
networks:
|
||||
backnet:
|
||||
name: backnet
|
||||
frontnet:
|
||||
name: frontnet
|
||||
|
@ -1,6 +1,7 @@
|
||||
services:
|
||||
db:
|
||||
image: mariadb:lts
|
||||
command: "--skip-name-resolve=OFF"
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: ['CMD', 'healthcheck.sh', '--connect', '--innodb_initialized']
|
||||
@ -30,6 +31,7 @@ services:
|
||||
restart: always
|
||||
# Comment following line to use flask (1worker, dev), uncomment to use uwsgi (wsgi)
|
||||
command: ["uwsgi", "--http", "0.0.0.0:8000", "--master", "-p", "4", "-w", "microblog:app"]
|
||||
container_name: backend
|
||||
environment:
|
||||
- MYSQL_USER=flasku
|
||||
#- MYSQL_PASSWORD=flaskp
|
||||
@ -127,4 +129,6 @@ volumes:
|
||||
|
||||
networks:
|
||||
backnet:
|
||||
name: backnet
|
||||
frontnet:
|
||||
name: frontnet
|
||||
|
Loading…
x
Reference in New Issue
Block a user