-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
95 lines (75 loc) · 1.77 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
version: '3.9'
services:
gogs:
image: gogs/gogs:0.13.0@sha256:730c521a280c0c6acd18f7b4335acc1a6ffc5ad31f872d5a193317b47a62eb90
hostname: gogs
container_name: gogs__gogs
restart: unless-stopped
environment:
TZ: JST
volumes:
- type: volume
source: gogs_data
target: /data
expose:
- 3000
networks:
- default
- outband
deploy:
resources:
limits:
memory: 512m
mariadb:
image: mariadb:11.4.2@sha256:396146c0a2e703ddebcf51f26abb28bf5590991d1d830c35c1d802034d140352
hostname: mariadb
container_name: gogs__mariadb
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: gogs
MYSQL_USER: gogs
MYSQL_PASSWORD: gogs
MYSQL_DATABASE: gogs
volumes:
- type: volume
source: mariadb_data
target: /var/lib/mysql
networks:
- default
deploy:
resources:
limits:
memory: 512m
cloudflared:
image: cloudflare/cloudflared:2024.6.0@sha256:8245fa2eeeabf437b061909cd59f123b39730f626bc676dc37cd3fb9f6880580
hostname: cloudflared
container_name: gogs__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:
- gogs__cloudflared
deploy:
resources:
limits:
memory: 128m
volumes:
gogs_data:
name: gogs__gogs_data
mariadb_data:
name: gogs__mariadb_data
networks:
default:
name: gogs__default
internal: true
outband:
name: gogs__outband
prometheus__cloudflared:
name: prometheus__cloudflared
external: true