1
0
forked from finn/site

db user restrict access to container

This commit is contained in:
2024-08-06 09:01:04 -07:00
parent 2ba3fe0a7e
commit bd5b04eeae
5 changed files with 43 additions and 6 deletions

View File

@@ -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