-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
77 lines (66 loc) · 1.69 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
---
# === MineTower docker-compose.yml ===
# You can replace every 'minetower' with your desired name!
# The network need to be created externally!
# The subnet 172.22.0.0/16 with the gateway 172.22.0.1 is highly recommended.
# A SQL database password is needed too!
services:
minetower-mysql:
container_name: minetower-mysql
image: mysql:latest
ports:
- 3342:3306
volumes:
- /root/minetower/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=samplepassword # REPLACE WITH YOUR PASSWORD !!!
restart: unless-stopped
networks:
minetower:
ipv4_address: 172.22.0.2
minetower-redis:
container_name: minetower-redis
image: redis:latest
ports:
- 6342:6379
volumes:
- /root/minetower/redis:/data
restart: unless-stopped
networks:
minetower:
ipv4_address: 172.22.0.3
minetower-api:
container_name: minetower-api
image: nikogenia/mt-api:latest
ports:
- 8042:8080
volumes:
- /root/minetower/api:/api
restart: unless-stopped
networks:
minetower:
ipv4_address: 172.22.1.2
minetower-master:
container_name: minetower-master
image: nikogenia/mt-master:latest
volumes:
- /root/minetower:/mt
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
networks:
minetower:
ipv4_address: 172.22.1.3
minetower-control:
container_name: minetower-control
image: nikogenia/mt-control:latest
volumes:
- /root/minetower/control:/control
ports:
- 3042:3000
restart: unless-stopped
networks:
minetower:
ipv4_address: 172.22.1.4
networks:
minetower:
external: true