From 05a934d88b69080fd65ad31e67eb0e0726bb5b66 Mon Sep 17 00:00:00 2001 From: giles Date: Wed, 8 Jun 2022 16:14:33 +0100 Subject: [PATCH] . --- docker-compose.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b30e756..d1b42f1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,15 +25,30 @@ services: - GITEA_MAILER_PASSWD=$GITEA_MAILER_PASSWD volumes: - - gitea-app:/data + - gitea-app-1:/data ports: - 3000:3000 - 22:22 networks: - appnet - externalnet +ghost-mysql: + image: ${DOCKER_REGISTRY}mysql:5.7 + deploy: + placement: + constraints: [node.labels.com.sigyl.git-stack-data == yes] + replicas: 1 + restart_policy: + condition: any + volumes: + - gitea-data:/var/lib/mysql + environment: + MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD + networks: + - appnet volumes: - gitea-app: + gitea-app-1: + gitea-data: networks: appnet: