### - POSTGRES - ### version: '3.9' services: gitea: container_name: {{ customer }}-gitea image: gitea/gitea:latest restart: always labels: - "diun.enable=true" volumes: - {{ customer }}-gitea-data:/data - {{ customer }}-gitea-backups:/tmp/backups - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: - "127.0.0.1:3007:3000" - "3036:22" environment: USER_UID: 1000 USER_GID: 1000 GITEA__database__DB_TYPE: postgres GITEA__database__HOST: {{ customer }}-gitea-db:5432 GITEA__database__NAME: 'gitea' GITEA__database__USER: '{{ gitea_postgres_user }}' GITEA__database__PASSWD: '{{ gitea_postgres_password }}' networks: {{ customer }}-gitea: ipv4_address: 172.20.3.2 depends_on: - gitea-db gitea-db: container_name: {{ customer }}-gitea-db image: postgres:14 restart: always environment: POSTGRES_USER: '{{ gitea_postgres_user }}' POSTGRES_PASSWORD: '{{ gitea_postgres_password }}' POSTGRES_DB: 'gitea' volumes: - {{ customer }}-gitea-postgres:/var/lib/postgresql/data - {{ customer }}-gitea-backups:/tmp/backups networks: {{ customer }}-gitea: ipv4_address: 172.20.3.3 # runner: # image: gitea/act_runner:latest-dind-rootless # restart: always # privileged: true # volumes: # - {{ customer }}-gitea-runner:/data # environment: # - GITEA_INSTANCE_URL=https://{{ domain_gitea }} # - DOCKER_HOST=unix:///var/run/user/1000/docker.sock # - GITEA_RUNNER_REGISTRATION_TOKEN= # networks: # {{ customer }}-gitea: # ipv4_address: 172.20.3.5 # depends_on: # - gitea networks: {{ customer }}-gitea: ipam: driver: default config: - subnet: 172.20.3.0/28 gateway: 172.20.3.1 volumes: {{ customer }}-gitea-data: {{ customer }}-gitea-postgres: {{ customer }}-gitea-runner: {{ customer }}-gitea-backups: