-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathforgejo.yml
54 lines (51 loc) · 1.67 KB
/
forgejo.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
52
53
54
# Change the following values to match your setup:
# change-me-1 is the password for the postgres database
# change-me-2 is the domain name for your gitea instance
services:
gitea:
image: codeberg.org/forgejo/forgejo:8 # Does not update itself, requires manual update process
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=gittea_db:5432
- GITEA__database__NAME=gitea
- GITEA__database__USER=postgres
- GITEA__database__PASSWD=change-me-1
- GITEA__server__DOMAIN=change-me-2
- GITEA__server__ROOT_URL=https://change-me-2/
- GITEA__service__DISABLE_SSH=true
- GITEA__service__DISABLE_REGISTRATION=true
volumes:
- gitea_data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
networks:
- dokploy-network
depends_on:
- gittea_db
labels:
- "traefik.enable=true"
- "traefik.http.routers.gitea.rule=Host(`change-me-2`)"
- "traefik.http.routers.gitea.entrypoints=websecure"
- "traefik.http.routers.gitea.tls=true"
- "traefik.http.routers.gitea.tls.certresolver=letsencrypt"
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
gittea_db:
image: postgres:16
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=change-me-1 # Match the change-me-1 password in the gitea service
- POSTGRES_DB=gitea
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
networks:
- dokploy-network
volumes:
gitea_data:
postgres_data:
networks:
dokploy-network:
external: true