64 lines
1.9 KiB
YAML
64 lines
1.9 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
gitea:
|
|
image: gitea/gitea:1.21.11
|
|
container_name: gitea
|
|
environment:
|
|
- USER_UID=1002
|
|
- USER_GID=1002
|
|
- DB_TYPE=postgres
|
|
- DB_HOST=bw.project-conquer.com
|
|
- DB_NAME=gitea
|
|
- DB_USER=gitea
|
|
- DB_PASSWD=g1+3a
|
|
restart: always
|
|
networks:
|
|
- traefik_proxy
|
|
volumes:
|
|
- /opt/gitea:/data
|
|
- ./app.ini:/data/gitea/conf/app.ini
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
# ports:
|
|
# - "3000:3000"
|
|
# - "2222:22"
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.docker.network=traefik_proxy
|
|
- traefik.http.routers.gitea-web.rule=Host(`git.project-conquer.com`)
|
|
- traefik.http.routers.gitea-web.entrypoints=websecure
|
|
- traefik.http.routers.gitea-web.tls.certresolver=le
|
|
- traefik.http.routers.gitea-web.service=gitea-web-svc
|
|
- traefik.http.services.gitea-web-svc.loadbalancer.server.port=3000
|
|
- traefik.tcp.routers.gitea-ssh.rule=HostSNI(`*`)
|
|
- traefik.tcp.routers.gitea-ssh.entrypoints=ssh
|
|
- traefik.tcp.routers.gitea-ssh.service=gitea-ssh-svc
|
|
- traefik.tcp.services.gitea-ssh-svc.loadbalancer.server.port=22
|
|
|
|
|
|
gitea_act:
|
|
container_name: gitea_act
|
|
restart: unless-stopped
|
|
image: gitea/act_runner:latest
|
|
networks:
|
|
- traefik_proxy
|
|
environment:
|
|
- GIT_SSL_NO_VERIFY=1
|
|
- CONFIG_FILE=/config.yaml
|
|
- GITEA_INSTANCE_URL=https://git.project-conquer.com
|
|
- GITEA_RUNNER_REGISTRATION_TOKEN=BMVpEQVGpXuXwlgHbhANC2wg9HPefVa3coZGcYuc
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ./runner_config.yaml:/config.yaml
|
|
- /opt/gitea:/repo
|
|
- gitea-runner-data:/data
|
|
|
|
# act_runner register --no-interactive --instance http://gitea:3000 --token $RUNNER_TOKEN --name git_runnerls
|
|
|
|
networks:
|
|
traefik_proxy:
|
|
external: true
|
|
|
|
volumes:
|
|
gitea-runner-data: |