-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
68 lines (54 loc) · 1.49 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
version: '3.9'
services:
judgesystem:
image: ghcr.io/yanorei32/yr32-judgesystem:latest@sha256:9a200f9f44c6bfffc086d0c5aa4821984a894dbdce9a9114ff241b5cdbde1cb6
hostname: judgesystem
container_name: judgesystem__judgesystem
init: true
restart: unless-stopped
user: root
volumes:
- type: bind
source: ./practices.json
target: /etc/practices.json
read_only: true
- type: bind
source: ./users.json
target: /etc/users.json
read_only: true
deploy:
resources:
limits:
cpus: "1"
memory: 512M
networks:
judgesystem_cloudflared:
cloudflared:
image: cloudflare/cloudflared:2024.9.1@sha256:0b88e00d8f93f9d18197f11506f0f6bf0d9266b5a0361c068930a3fe45b68b72
hostname: cloudflared
container_name: judgesystem__cloudflared
restart: unless-stopped
environment:
TUNNEL_METRICS: 0.0.0.0:9126
TUNNEL_LOGFILE: /dev/stdout
command: tunnel run --token ${TUNNEL_TOKEN}
user: root
networks:
judgesystem_cloudflared:
cloudflared_internet:
prometheus__cloudflared:
aliases:
- judgesystem__cloudflared
deploy:
resources:
limits:
memory: 128m
networks:
prometheus__cloudflared:
name: prometheus__cloudflared
external: true
judgesystem_cloudflared:
name: judgesystem__judgesystem_cloudflared
internal: true
cloudflared_internet:
name: judgesystem__judgesystem_internet