gitea/docker-compose.yml

69 lines
1.8 KiB
YAML

version: "3.7"
services:
gitea:
deploy:
placement:
constraints: [node.labels.com.sigyl.gitea == yes]
replicas: 1
restart_policy:
condition: any
image: ${LOCAL_DOCKER_REGISTRY}gitea
environment:
- USER_UID=1000
- USER_GID=1000
- SSH_DOMAIN=${DOMAIN}
- SCHEME=${SCHEME}
- GITEA_APP_NAME=${GITEA_APP_NAME}
- GITEA_DOMAIN=${DOMAIN}
- GITEA_SERVER_LFS_JWT_SECRET=$GITEA_SERVER_LFS_JWT_SECRET
- GITEA_SECURITY_SECRET_KEY=$GITEA_SECURITY_SECRET_KEY
- GITEA_SECURITY_INTERNAL_TOKEN=$GITEA_SECURITY_INTERNAL_TOKEN
- GITEA_OAUTH2_JWT_SECRET=$GITEA_OAUTH2_JWT_SECRET
- GITEA_MAILER_HOST=$GITEA_MAILER_HOST
- GITEA_MAILER_USER=$GITEA_MAILER_USER
- GITEA_MAILER_FROM=$GITEA_MAILER_FROM
- GITEA_MAILER_PASSWD=$GITEA_MAILER_PASSWD
- GITEA__database__DB_TYPE=mysql
- GITEA__database__HOST=mysql:3306
- GITEA__database__NAME=gitead
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea
volumes:
- gitea-app-4:/data
ports:
- 3000:3000
- 22:22
networks:
- appnet
- externalnet
mysql:
image: ${DOCKER_REGISTRY}mysql:8
deploy:
placement:
constraints: [node.labels.com.sigyl.git-stack-data == yes]
replicas: 1
restart_policy:
condition: any
volumes:
- gitea-data-5:/var/lib/mysql
environment:
#- MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
- MYSQL_ROOT_PASSWORD=gitea
- MYSQL_USER=gitea
- MYSQL_PASSWORD=gitea
- MYSQL_DATABASE=gitea
networks:
- appnet
volumes:
gitea-app-4:
gitea-data-5:
networks:
appnet:
driver: overlay
#external: true
externalnet:
driver: overlay
external: true