2020-03-08 18:12:12 +00:00
|
|
|
version: "2.3"
|
2020-02-07 08:57:48 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
gitea:
|
2020-07-29 18:26:13 +01:00
|
|
|
image: gitea/gitea:1.12.3
|
2020-02-07 08:57:48 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- USER_UID={{ docker_user.id }}
|
|
|
|
- USER_GID={{ docker_user.id }}
|
|
|
|
ports:
|
|
|
|
- "{{ wireguard.clients.intersect.ip }}:3022:3022"
|
2020-06-24 18:35:20 +01:00
|
|
|
depends_on:
|
|
|
|
- db
|
2020-02-07 08:57:48 +00:00
|
|
|
volumes:
|
2020-08-21 16:02:56 +01:00
|
|
|
- /mnt/tank/app-data/gitea:/data
|
|
|
|
- /mnt/tank/files/repositories:/data/git
|
2020-02-07 08:57:48 +00:00
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:12-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2020-08-21 16:02:56 +01:00
|
|
|
- /mnt/tank/dbs/postgres/gitea:/var/lib/postgresql/data
|
2020-02-07 08:57:48 +00:00
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=gitea
|
|
|
|
- POSTGRES_USER=gitea
|
2020-02-17 21:46:50 +00:00
|
|
|
|
2020-03-30 21:40:04 +01:00
|
|
|
db-backups:
|
|
|
|
image: prodrigestivill/postgres-backup-local:12-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- /scratch/db-backups:/backups
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
environment:
|
|
|
|
- POSTGRES_HOST=db
|
|
|
|
- POSTGRES_PASSWORD=gitea
|
|
|
|
- POSTGRES_USER=gitea
|
|
|
|
- POSTGRES_DB=gitea
|
|
|
|
- BACKUP_KEEP_MONTHS=1
|
|
|
|
- BACKUP_KEEP_WEEKS=1
|