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: