-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·89 lines (67 loc) · 1.71 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
version: '3'
services:
db:
image: mysql:8.3
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: gamenode
MYSQL_PASSWORD: gamenode
MYSQL_DATABASE: gamenode
ports:
- "3306:3306"
restart: no
volumes:
- db:/var/lib/mysql
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
timeout: 20s
retries: 10
supertokens:
image: registry.supertokens.io/supertokens/supertokens-mysql:9.1.1
depends_on:
db:
condition: service_healthy
ports:
- "3567:3567"
environment:
MYSQL_CONNECTION_URI: mysql://gamenode:gamenode@db:3306/gamenode
restart: no
healthcheck:
test: >
bash -c 'exec 3<>/dev/tcp/127.0.0.1/3567 && echo -e "GET /hello HTTP/1.1\r\nhost: 127.0.0.1:3567\r\nConnection: close\r\n\r\n" >&3 && cat <&3 | grep "Hello"'
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:latest
ports:
- "6379:6379"
environment:
ALLOW_EMPTY_PASSWORD: 'yes'
restart: no
healthcheck:
test: ["CMD", "redis-cli", "ping"]
volumes:
- redis:/data
rabbitmq:
image: rabbitmq:3.13-management
ports:
# These will be available at your localhost:
- "5672:5672"
- "25672:25672" # (erlang) communication between the nodes and CLI tool
- "15672:15672" # communication with the web management API
volumes:
- rabbitmq:/var/lib/rabbitmq/
environment:
RABBITMQ_DEFAULT_USER: gamenode
RABBITMQ_DEFAULT_PASS: gamenode
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 3
volumes:
redis:
db:
manticore:
rabbitmq: