-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (71 loc) · 1.43 KB
/
docker-compose.yml
File metadata and controls
76 lines (71 loc) · 1.43 KB
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
services:
mc:
restart: always
image: itzg/minecraft-server:java21-alpine
ports:
- 25565:25565
- 25575:25575
environment:
EULA: "TRUE"
TYPE: "SPIGOT"
SERVER_NAME: "minemaxxers"
MODE: "survival"
MOTD: "§l§2shupo shupo§r"
DIFFICULTY: "normal"
ENABLE_RCON: "true"
MEMORY: "7G"
RCON_PASSWORD: ${RCON_PASS}
RCON_PORT: ${RCON_PORT}
RCON_CMDS_LAST_DISCONNECT: "/save-all"
OPS: gocs_
SPIGET_RESOURCES: |
28140
34315
8450
volumes:
# attach the relative directory 'data' to the container's /data path
- ./data:/data
networks:
- mcadmin
web:
restart: always
build:
context: .
dockerfile: Dockerfile.py
args:
YOUR_ENV: development
command: python -Wd manage.py runserver 0.0.0.0:8000
ports:
- 8000:8000
env_file:
- ./.env
volumes:
- .:/code:rw
depends_on:
- db
networks:
- mcadmin
db:
image: postgres:16.3-alpine
restart: unless-stopped
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env
networks:
- mcadmin
nginx:
restart: always
image: nginx:1.17-alpine
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- 80:80
depends_on:
- web
networks:
- mcadmin
volumes:
postgres_data:
networks:
mcadmin: