This repository has been archived by the owner on Sep 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
82 lines (72 loc) · 2.32 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: "3"
services:
# ===================
# | Gitea |
# ===================
gitea:
# ---- Build instructions ----
container_name: gitea
image: gitea/gitea:nightly
# ---- Container information ----
restart: unless-stopped
depends_on:
- postgresql-gitea
labels:
- traefik.enable=true
- traefik.docker.network=webgateway-traefik
- traefik.http.routers.gitea-http-router.rule=Host(`gitea.alexis-vannot.dev`)
- traefik.http.routers.gitea-http-router.entrypoints=websecure
- traefik.http.routers.gitea-http-router.tls=true
- traefik.http.routers.gitea-http-router.tls.certresolver=letsencrypt
- traefik.http.routers.gitea-http-router.service=gitea-http-service
- traefik.http.services.gitea-http-service.loadbalancer.server.port=3000
- traefik.tcp.routers.gitea-tcp-router.rule=HostSNI(`*`)
- traefik.tcp.routers.gitea-tcp-router.entrypoints=ssh
- traefik.tcp.routers.gitea-tcp-router.service=gitea-tcp-service
- traefik.tcp.services.gitea-tcp-service.loadbalancer.server.port=22
volumes:
# Container configuration
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
# Gitea data
- ./gitea_data:/data
networks:
- webgateway-gitea
- webgateway-traefik
# ============================
# | PostgreSQL |
# ============================
postgresql-gitea:
# ---- Build instructions ----
container_name: postgresql-gitea
image: postgres:14
shm_size: 256m
# ---- Container information ----
tty: true
restart: unless-stopped
environment:
- POSTGRES_PASSWORD_FILE=/run/secrets/postgresql_root_password
volumes:
# Container configuration
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
# PostgreSQL data
- ./postgresql_data:/var/lib/postgresql/data
networks:
- webgateway-gitea
secrets:
- postgresql_root_password
# ========================
# | Networks |
# ========================
networks:
webgateway-gitea:
name: webgateway-gitea
webgateway-traefik:
external: true
# ========================
# | Secrets |
# ========================
secrets:
postgresql_root_password:
file: ./.secrets/postgresql_root_password.txt