-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (46 loc) · 1.12 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: "3.8"
services:
app:
image: gitea/gitea:1-rootless
restart: unless-stopped
environment:
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=db:5432
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea
volumes:
- app_data:/var/lib/gitea
- app_config:/etc/gitea
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
proxy_apps:
default:
depends_on:
- db
db:
image: postgres:16-alpine
restart: unless-stopped
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=gitea
- POSTGRES_DB=gitea
volumes:
- db_data:/var/lib/postgresql/data
labels:
ofelia.restart: "true"
ofelia.enabled: "true"
ofelia.job-exec.giteadbbackup.schedule: "0 0 1 * * *"
ofelia.job-exec.giteadbbackup.command: "sh -c 'pg_dumpall -U gitea -f /var/lib/postgresql/data/backup.sql'"
networks:
default:
volumes:
app_data:
app_config:
db_data:
networks:
default:
proxy_apps:
name: proxy_apps
external: true