-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
58 lines (53 loc) · 1.52 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
version: "3.9"
services:
ds-java:
image: itzg/minecraft-server
restart: unless-stopped
env_file:
- ./settings.common.env
- ./settings.env
ports:
- 25565:25565 # minecraft server
- 25575:25575 # Remote CONnection (RCON command interface)
- 8123:8123 # dynmap (mapping plugin, http)
- 24454:24454/udp # mod: simple-voice-chat
volumes:
- ./data:/data
stdin_open: true
tty: true
# Reverse Proxy
nginx:
image: nginx:1.20-alpine
restart: unless-stopped
ports:
- 443:443
- 80:80
volumes:
# nginx config
- ./nginx.conf:/etc/nginx/conf.d/default.conf
# shared with certbot (for https certs)
- ./data/certbot/conf:/etc/letsencrypt
- certbot_www:/var/www/certbot
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
profiles: ["reverse-proxy"]
certbot:
image: certbot/certbot
restart: unless-stopped
volumes:
- ./data/certbot/conf:/etc/letsencrypt/
- certbot_www:/var/www/certbot/
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
profiles: ["reverse-proxy"]
# Notifications
notify:
build: notify
restart: unless-stopped
env_file:
- ./notify/keys.env
volumes:
- ./notify:/code
- ./data/logs:/var/logs:ro
profiles: ["optional"]
command: "python /code/service.py --logfile=/var/logs/latest.log"
volumes:
certbot_www: