-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (55 loc) · 1.2 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
version: "3.8"
services:
mosquitto:
image: eclipse-mosquitto
volumes:
- ./mosquitto/data:/mosquitto/data
- ./mosquitto/log:/mosquitto/log
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
expose:
- 1883
ports:
- 1883:1883
- 9001:9001
hw:
container_name: hw
image: matiah/pongdog-hw:0.1
network_mode: host
volumes:
- ./config.toml:/godog/config.toml
privileged: true
depends_on:
- mosquitto
restart: unless-stopped
gamestate:
container_name: gamestate
image: matiah/pongdog-gamestate:0.1
network_mode: host
volumes:
- ./config.toml:/app/config.toml
depends_on:
- mosquitto
- hw
restart: unless-stopped
db:
container_name: gamedb
image: hypriot/rpi-mysql:latest
ports:
- "32001:3306"
environment:
MYSQL_ROOT_PASSWORD: root
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
restart: unless-stopped
graphics:
container_name: graphics
image: jakvah/pongdog:0.1
links:
- "db"
ports:
- "5000:5000"
depends_on:
- db
restart: unless-stopped