-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
106 lines (84 loc) · 2.05 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: '3.9'
services:
gitea:
image: gitea/gitea:1.22.6@sha256:538658de667c5d098a274f2f63aa6ec891d88f670cdd5282cf27221ba747dda4
hostname: gitea
container_name: gitea__gitea
restart: unless-stopped
environment:
TZ: JST
GITEA__service__REGISTER_MANUAL_CONFIRM: "true"
volumes:
- type: volume
source: gitea_data
target: /data
- type: bind
source: /etc/timezone
target: /etc/timezone
read_only: true
- type: bind
source: /etc/localtime
target: /etc/localtime
read_only: true
expose:
- 3000
networks:
- default
- outband
deploy:
resources:
limits:
memory: 512m
mariadb:
image: mariadb:11.5.2@sha256:9e7695800ab8fa72d75053fe536b090d0c9373465b32a073c73bc7940a2e8dbe
hostname: mariadb
container_name: gitea__mariadb
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: gitea
MYSQL_USER: gitea
MYSQL_PASSWORD: gitea
MYSQL_DATABASE: gitea
volumes:
- type: volume
source: mariadb_data
target: /var/lib/mysql
networks:
- default
deploy:
resources:
limits:
memory: 512m
cloudflared:
image: cloudflare/cloudflared:2024.9.1@sha256:0b88e00d8f93f9d18197f11506f0f6bf0d9266b5a0361c068930a3fe45b68b72
hostname: cloudflared
container_name: gitea__cloudflared
restart: unless-stopped
environment:
TUNNEL_METRICS: 0.0.0.0:9126
TUNNEL_LOGFILE: /dev/stdout
command: tunnel run --token ${TUNNEL_TOKEN}
networks:
default:
outband:
prometheus__cloudflared:
aliases:
- gitea__cloudflared
deploy:
resources:
limits:
memory: 128m
volumes:
gitea_data:
name: gitea__gitea_data
mariadb_data:
name: gitea__mariadb_data
networks:
default:
name: gitea__default
internal: true
outband:
name: gitea__outband
prometheus__cloudflared:
name: prometheus__cloudflared
external: true