2020-05-10 19:27:22 +00:00
|
|
|
version: "3.7"
|
|
|
|
services:
|
|
|
|
gitea:
|
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints: [node.labels.com.sigyl.git-stack == yes]
|
|
|
|
replicas: 1
|
|
|
|
restart_policy:
|
|
|
|
condition: any
|
2023-10-20 12:04:28 +00:00
|
|
|
image: ${LOCAL_DOCKER_REGISTRY}gitea:${TAG}
|
2020-05-10 19:27:22 +00:00
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
2020-08-28 21:11:43 +00:00
|
|
|
- SSH_DOMAIN=${DOMAIN}
|
2020-10-22 09:12:30 +00:00
|
|
|
- SCHEME=${SCHEME}
|
2020-05-10 19:27:22 +00:00
|
|
|
- GITEA_APP_NAME=${GITEA_APP_NAME}
|
2020-09-23 07:20:38 +00:00
|
|
|
- GITEA_DOMAIN=${DOMAIN}
|
2020-05-10 19:27:22 +00:00
|
|
|
- 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
|
2023-10-02 16:54:33 +00:00
|
|
|
- GITEA_MAILER_PROTOCOL=$GITEA_MAILER_PROTOCOL
|
2020-05-10 19:27:22 +00:00
|
|
|
volumes:
|
|
|
|
- gitea-app:/data
|
2023-10-20 17:50:09 +00:00
|
|
|
#ports:
|
|
|
|
# - 22:22
|
2020-05-10 19:27:22 +00:00
|
|
|
networks:
|
|
|
|
- appnet
|
|
|
|
- externalnet
|
2023-10-20 10:28:15 +00:00
|
|
|
act-runner:
|
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints: [node.labels.com.sigyl.git-stack == yes]
|
|
|
|
replicas: 1
|
|
|
|
restart_policy:
|
|
|
|
condition: any
|
2023-10-20 17:39:51 +00:00
|
|
|
image: ${LOCAL_DOCKER_REGISTRY}act_runner:${TAG}
|
2023-10-20 12:52:13 +00:00
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2023-10-20 10:28:15 +00:00
|
|
|
networks:
|
|
|
|
- appnet
|
2023-10-20 12:45:39 +00:00
|
|
|
environment:
|
2023-10-20 17:57:09 +00:00
|
|
|
- CONFIG_FILE=/config.yaml
|
2023-10-20 12:52:13 +00:00
|
|
|
- GITEA_INSTANCE_URL=https://sigyl.com/git/
|
|
|
|
- GITEA_RUNNER_REGISTRATION_TOKEN=$RUNNER_REGISTRATION_TOKEN
|
|
|
|
- GITEA_RUNNER_NAME="giles-test"
|
2023-10-20 17:55:34 +00:00
|
|
|
- GITEA_RUNNER_LABELS=""
|
2020-05-10 19:27:22 +00:00
|
|
|
volumes:
|
|
|
|
gitea-app:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
appnet:
|
|
|
|
driver: overlay
|
|
|
|
#external: true
|
|
|
|
externalnet:
|
|
|
|
driver: overlay
|
|
|
|
external: true
|