-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-stack-bob.yml
More file actions
47 lines (44 loc) · 1.06 KB
/
docker-stack-bob.yml
File metadata and controls
47 lines (44 loc) · 1.06 KB
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
version: "3.8"
services:
gitea:
image: gitea/gitea:latest
environment:
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=db:5432
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea
- GITEA__server__ROOT_URL=http://bob.apps.lan/
depends_on:
- db
volumes:
- gitea_data:/data
networks:
- appnet
- traefik-public
deploy:
replicas: 1
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-public"
- "traefik.http.routers.bob.rule=Host(`bob.apps.lan`)"
- "traefik.http.routers.bob.entrypoints=web"
- "traefik.http.services.bob.loadbalancer.server.port=3000"
db:
image: postgres:15-alpine
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=gitea
- POSTGRES_DB=gitea
volumes:
- gitea_db:/var/lib/postgresql/data
networks:
- appnet
volumes:
gitea_data:
gitea_db:
networks:
appnet:
driver: overlay
traefik-public:
external: true