Blame

dccb74 mvbingham 2025-07-27 21:23:35 1
# Gogs
2
3
docker compose file
4
5
```yaml
6
services:
7
postgres:
8
image: postgres:latest
9
container_name: postgres
10
restart: unless-stopped
11
environment:
12
- POSTGRES_USER=gogs
13
- POSTGRES_PASSWORD=p4ssw0rd # IMPORTANT: Change this password
14
- POSTGRES_DB=gogs
15
ports:
16
- "5432:5432"
17
volumes:
18
- ./db-data:/var/lib/postgresql/data
19
gogs:
20
image: gogs/gogs:latest
21
container_name: gogs
22
restart: unless-stopped
23
ports:
24
- "3005:3000" # UI
25
- "10022:22" # SSH
26
links:
27
- postgres
28
environment:
29
- TZ="Europe/Prague" # IMPORTANT: Change this timezone if needed
30
volumes:
31
- ./gogs-data:/data
32
depends_on:
33
- postgres
34
```