2023-01-27 17:28:45 +00:00
|
|
|
version: "2.3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
gitea:
|
2023-07-16 22:00:28 +01:00
|
|
|
image: gitea/gitea:1.20.0-rootless
|
2023-01-27 17:28:45 +00:00
|
|
|
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
|
|
|
|
tmpfs:
|
|
|
|
- /var/lib/gitea/tmp
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- "{{ pve_hosts.docker.ip }}:2222:2222"
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
2023-03-30 22:56:35 +01:00
|
|
|
- traefik.http.routers.gitea.rule=Host(`git.theorangeone.net`)
|
2023-01-27 17:28:45 +00:00
|
|
|
- traefik.http.services.gitea-gitea.loadbalancer.server.port=3000
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- traefik
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:14-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2023-06-15 09:09:48 +01:00
|
|
|
- /mnt/speed/dbs/postgres/gitea:/var/lib/postgresql/data
|
2023-01-27 17:28:45 +00:00
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=gitea
|
|
|
|
- POSTGRES_USER=gitea
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:7-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2023-06-15 09:09:48 +01:00
|
|
|
- /mnt/speed/dbs/redis/gitea:/data
|
2023-01-27 17:28:45 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
traefik:
|
|
|
|
external: true
|