2020-05-10 16:16:11 +00:00
|
|
|
version: "3.7"
|
|
|
|
services:
|
2020-05-10 20:04:43 +00:00
|
|
|
gitea:
|
2020-05-10 16:16:11 +00:00
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints: [node.labels.com.sigyl.git-stack == yes]
|
|
|
|
replicas: 1
|
|
|
|
restart_policy:
|
|
|
|
condition: any
|
2020-05-10 20:04:43 +00:00
|
|
|
image: ${LOCAL_DOCKER_REGISTRY}gitea
|
2020-05-10 16:16:11 +00:00
|
|
|
environment:
|
2020-05-10 20:04:43 +00:00
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
|
|
|
- ROOT_URL=https://${GIT_DOMAIN}/git
|
|
|
|
- SSH_DOMAIN=${GIT_DOMAIN}
|
|
|
|
- GITEA_APP_NAME=${GITEA_APP_NAME}
|
|
|
|
- GIT_DOMAIN=${GIT_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
|
|
|
|
|
2020-05-10 16:16:11 +00:00
|
|
|
volumes:
|
2020-05-10 20:04:43 +00:00
|
|
|
- gitea-app:/data
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|
|
|
|
- 22:22
|
2020-05-10 16:16:11 +00:00
|
|
|
networks:
|
|
|
|
- appnet
|
2020-05-10 20:04:43 +00:00
|
|
|
- externalnet
|
2020-05-10 16:16:11 +00:00
|
|
|
volumes:
|
2020-05-10 20:04:43 +00:00
|
|
|
gitea-app:
|
2020-05-10 16:16:11 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
appnet:
|
|
|
|
driver: overlay
|
|
|
|
#external: true
|
|
|
|
externalnet:
|
|
|
|
driver: overlay
|
|
|
|
external: true
|