From 67f33a001c634652dcd2ba7ecd2da14990063c21 Mon Sep 17 00:00:00 2001 From: bmen Date: Wed, 7 Oct 2020 23:27:24 +0200 Subject: [PATCH 1/2] service server zu gitea umbenannt --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 364cd55..ee46010 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ networks: external: true services: - server: + gitea: image: gitea/gitea:1.12.5 environment: - USER_UID=1000 -- 2.40.1 From 754aac296e1547e62a1f625f1865bbb5ed379522 Mon Sep 17 00:00:00 2001 From: bmen Date: Wed, 7 Oct 2020 23:27:57 +0200 Subject: [PATCH 2/2] DB Zugangsdaten nun als Variablen --- docker-compose.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ee46010..07b8a01 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 -- 2.40.1