-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
executable file
·41 lines (40 loc) · 1.05 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
version: '3.6'
services:
fdb:
image: foundationdb/foundationdb:7.1.23
environment:
FDB_NETWORKING_MODE: container
FDB_COORDINATOR_PORT: 4500
FDB_COORDINATOR: fdb
FDB_PORT: 4500
storage:
image: minecpp/storage:latest
volumes:
- '.:/config'
environment:
PORT: 7000
CLUSTERFILE_PATH: "/config/clusterfile-docker"
command: bash -c "/config/docker/init_database.sh && /usr/bin/minecpp_storage"
depends_on:
- fdb
engine:
image: minecpp/engine:latest
volumes:
- '.:/config'
environment:
CONFIG_FILE: /config/service/engine/config-docker.yaml
command: bash -c "sleep 3 && /usr/bin/minecpp_engine"
depends_on:
- storage
front:
image: minecpp/front:latest
volumes:
- '.:/config'
environment:
CONFIG_FILE: /config/service/front/config-docker.yaml
PORT: 25565
command: bash -c "openssl genrsa -out /var/minecpp_key.pem 1024 && sleep 4 && /usr/bin/minecpp_front"
ports:
- "25565:25565"
depends_on:
- engine