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
- DB_TYPE=mysql
- DB_HOST=db:3306
- DB_NAME=gitea
- DB_USER=gitea
- DB_PASSWD=gitea
- DB_NAME=§{MYSQL_DATABASE}
- DB_USER=§{MYSQL_USER}
- DB_PASSWD=§{MYSQL_PASSWORD}
restart: always
networks:
- webproxy
@ -34,10 +34,10 @@ services:
image: mysql:5.7
restart: always
environment:
- MYSQL_ROOT_PASSWORD=gitea
- MYSQL_USER=gitea
- MYSQL_PASSWORD=gitea
- MYSQL_DATABASE=gitea
- MYSQL_RANDOM_ROOT_PASSWORD='1'
- MYSQL_USER=§{MYSQL_USER}
- MYSQL_PASSWORD=§{MYSQL_PASSWORD}
- MYSQL_DATABASE=§{MYSQL_DATABASE}
networks:
- backend-gitea
container_name: bmen-gitea-db