From 3474126712141d50c4bb7c59e746879aa11d5577 Mon Sep 17 00:00:00 2001 From: bmen Date: Thu, 8 Oct 2020 09:04:47 +0200 Subject: [PATCH] =?UTF-8?q?Postgres=20DB=20f=C3=BCr=20Drone=20eingerichtet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 26c3c86..6dd4728 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -64,7 +64,7 @@ services: - DRONE_USER_CREATE=username:${DRONE_ADMIN},admin:true - DRONE_SERVER_PORT=:80 - DRONE_DATABASE_DRIVER=postgres - - DRONE_DATABASE_DATASOURCE=postgres://postgres:postgres@db:5432/postgres?sslmode=disable + - DRONE_DATABASE_DATASOURCE=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}?sslmode=disable - DRONE_GIT_ALWAYS_AUTH=false - DRONE_GITEA_SERVER=https://git.bmen.cc - DRONE_RPC_SECRET=ยง{DRONE_RPC_SECRET} @@ -75,7 +75,20 @@ services: - DRONE_AGENTS_ENABLED=true networks: - backend-gitea - + + drone-db: + image: postgres:alpine + container_name: drone-db + restart: always + volumes: + - /opt/appdata/gitea/drone-db:/var/lib/postgresql/data + environment: + - POSTGRES_USER=${POSTGRES_USER} + - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} + - POSTGRES_DB=${POSTGRES_DB} + networks: + - backend-gitea + drone-agent: image: drone/agent:1.2.1 container_name: bmen-gitea-drone-agent