infrastructure/ansible/roles/gitea/files/docker-compose.yml
Jake Howard 3a29c327b7
All checks were successful
/ terraform (push) Successful in 1m0s
/ ansible (push) Successful in 1m47s
Remove version key from compose files
2024-07-15 18:08:14 +01:00

48 lines
1.3 KiB
YAML

services:
gitea:
image: gitea/gitea:1.22-rootless
user: "{{ docker_user.id }}:{{ docker_user.id }}"
environment:
- TZ={{ timezone }}
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- "{{ app_data_dir }}/gitea/data:/var/lib/gitea"
- "{{ app_data_dir }}/gitea/config:/etc/gitea"
- /mnt/tank/files/gitea-repositories/repositories:/mnt/repositories
- /mnt/tank/files/gitea-repositories/lfs:/mnt/lfs
- /mnt/tank/files/gitea-repositories/archive:/mnt/repo-archive
tmpfs:
- /var/lib/gitea/tmp
restart: unless-stopped
ports:
- "{{ pve_hosts.docker.ip }}:2222:2222"
depends_on:
- db
- redis
labels:
- traefik.enable=true
- traefik.http.routers.gitea.rule=Host(`git.theorangeone.net`)
- traefik.http.services.gitea-gitea.loadbalancer.server.port=3000
networks:
- default
- traefik
db:
image: postgres:14-alpine
restart: unless-stopped
volumes:
- /mnt/speed/dbs/postgres/gitea:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=gitea
- POSTGRES_USER=gitea
redis:
image: redis:7-alpine
restart: unless-stopped
volumes:
- /mnt/speed/dbs/redis/gitea:/data
networks:
traefik:
external: true