DB Zugangsdaten nun als Variablen

This commit is contained in:
bmen 2020-10-07 23:27:57 +02:00
parent 67f33a001c
commit 754aac296e
1 changed files with 7 additions and 7 deletions

View File

@ -15,9 +15,9 @@ services:
- USER_GID=1000 - USER_GID=1000
- DB_TYPE=mysql - DB_TYPE=mysql
- DB_HOST=db:3306 - DB_HOST=db:3306
- DB_NAME=gitea - DB_NAME=§{MYSQL_DATABASE}
- DB_USER=gitea - DB_USER=§{MYSQL_USER}
- DB_PASSWD=gitea - DB_PASSWD=§{MYSQL_PASSWORD}
restart: always restart: always
networks: networks:
- webproxy - webproxy
@ -34,10 +34,10 @@ services:
image: mysql:5.7 image: mysql:5.7
restart: always restart: always
environment: environment:
- MYSQL_ROOT_PASSWORD=gitea - MYSQL_RANDOM_ROOT_PASSWORD='1'
- MYSQL_USER=gitea - MYSQL_USER=§{MYSQL_USER}
- MYSQL_PASSWORD=gitea - MYSQL_PASSWORD=§{MYSQL_PASSWORD}
- MYSQL_DATABASE=gitea - MYSQL_DATABASE=§{MYSQL_DATABASE}
networks: networks:
- backend-gitea - backend-gitea
container_name: bmen-gitea-db container_name: bmen-gitea-db