96 lines
2.8 KiB
YAML
96 lines
2.8 KiB
YAML
version: "3.7"
|
|
services:
|
|
gitea:
|
|
deploy:
|
|
placement:
|
|
constraints: [node.labels.com.sigyl.git-stack == yes]
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: any
|
|
image: ${LOCAL_DOCKER_REGISTRY}gitea:${TAG}
|
|
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_MAILER_PROTOCOL=$GITEA_MAILER_PROTOCOL
|
|
volumes:
|
|
- gitea-app:/data
|
|
networks:
|
|
- appnet
|
|
- externalnet
|
|
act-runner:
|
|
deploy:
|
|
placement:
|
|
constraints: [node.labels.com.sigyl.git-stack == yes]
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: any
|
|
image: ${LOCAL_DOCKER_REGISTRY}act_runner:${TAG}
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
networks:
|
|
- appnet
|
|
environment:
|
|
- CONFIG_FILE=/config.yaml
|
|
- GITEA_INSTANCE_URL=https://sigyl.com/git/
|
|
- GITEA_RUNNER_REGISTRATION_TOKEN=$RUNNER_REGISTRATION_TOKEN
|
|
- GITEA_RUNNER_NAME="giles-test"
|
|
- GITEA_RUNNER_LABELS=""
|
|
user-act-runner:
|
|
deploy:
|
|
placement:
|
|
constraints: [node.labels.com.sigyl.git-stack == yes]
|
|
replicas: 5
|
|
restart_policy:
|
|
condition: any
|
|
image: ${LOCAL_DOCKER_REGISTRY}act_runner:${TAG}
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
networks:
|
|
- appnet
|
|
environment:
|
|
- CONFIG_FILE=/config.yaml
|
|
- GITEA_INSTANCE_URL=https://sigyl.com/git/
|
|
- GITEA_RUNNER_REGISTRATION_TOKEN=$USER_RUNNER_REGISTRATION_TOKEN
|
|
- GITEA_RUNNER_NAME="giles-test"
|
|
- GITEA_RUNNER_LABELS=""
|
|
organisation-act-runner:
|
|
deploy:
|
|
placement:
|
|
constraints: [node.labels.com.sigyl.git-stack == yes]
|
|
replicas: 5
|
|
restart_policy:
|
|
condition: any
|
|
image: ${LOCAL_DOCKER_REGISTRY}act_runner:${TAG}
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
networks:
|
|
- appnet
|
|
environment:
|
|
- CONFIG_FILE=/config.yaml
|
|
- GITEA_INSTANCE_URL=https://sigyl.com/git/
|
|
- GITEA_RUNNER_REGISTRATION_TOKEN=$ORGANISATION_RUNNER_REGISTRATION_TOKEN
|
|
- GITEA_RUNNER_NAME="giles-test"
|
|
- GITEA_RUNNER_LABELS=""
|
|
volumes:
|
|
gitea-app:
|
|
|
|
networks:
|
|
appnet:
|
|
driver: overlay
|
|
#external: true
|
|
externalnet:
|
|
driver: overlay
|
|
external: true
|