forked from enjin/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
122 lines (113 loc) · 2.55 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
version: "3.9"
services:
database:
image: mysql:8
restart: unless-stopped
environment:
- MYSQL_DATABASE
- MYSQL_ROOT_PASSWORD
volumes:
- platform-mysql:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-p${MYSQL_ROOT_PASSWORD}"]
retries: 3
timeout: 5s
ports:
- "${MYSQL_EXTERNAL_PORT}:3306"
redis:
image: redis:alpine
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
retries: 3
timeout: 5s
ports:
- "${REDIS_EXTERNAL_PORT}:6379"
decoder:
image: enjin/decoder:latest
build:
context: ./platform-decoder
restart: unless-stopped
ports:
- "${DECODER_EXTERNAL_PORT}:8090"
app:
image: enjin/platform:latest
build:
context: .
dockerfile: configs/core/Dockerfile
restart: unless-stopped
environment:
CONTAINER_ROLE: app
volumes:
- ./logs:/var/www/html/storage/logs
depends_on:
- database
- redis
ports:
- "${APP_EXTERNAL_PORT}:80"
extra_hosts:
- "host.docker.internal:host-gateway"
websocket:
image: enjin/platform:latest
build:
context: .
dockerfile: configs/core/Dockerfile
restart: unless-stopped
environment:
CONTAINER_ROLE: websocket
volumes:
- ./logs:/var/www/html/storage/logs
depends_on:
- database
- redis
ports:
- "${SOCKET_EXTERNAL_PORT}:6001"
extra_hosts:
- "host.docker.internal:host-gateway"
ingest:
image: enjin/platform:latest
build:
context: .
dockerfile: configs/core/Dockerfile
restart: unless-stopped
environment:
CONTAINER_ROLE: ingest
volumes:
- ./logs:/var/www/html/storage/logs
depends_on:
- database
- redis
- app
- websocket
extra_hosts:
- "host.docker.internal:host-gateway"
beam:
image: enjin/platform:latest
build:
context: .
dockerfile: configs/core/Dockerfile
restart: unless-stopped
environment:
CONTAINER_ROLE: beam
volumes:
- ./logs:/var/www/html/storage/logs
depends_on:
- database
- redis
- app
- websocket
- ingest
extra_hosts:
- "host.docker.internal:host-gateway"
daemon:
image: enjin/daemon:latest
build:
context: .
dockerfile: configs/daemon/Dockerfile
restart: unless-stopped
volumes:
- ./configs/daemon/store:/opt/app/storage
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
platform-mysql: