-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathdocker-compose.dev.yml
79 lines (78 loc) · 2.46 KB
/
docker-compose.dev.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
services:
redis-standalone-1:
image: redis/redis-stack-server:7.4.0-v1
ports:
- "7001:7001"
volumes:
- ./config/redis/standalone-1.conf:/redis-stack.conf
- ./data/redis/7001:/data
env_file:
- ./config/redis/.env.redis
redis-standalone-2:
image: redis/redis-stack-server:7.4.0-v1
ports:
- "7002:7002"
volumes:
- ./config/redis/standalone-2.conf:/redis-stack.conf
- ./data/redis/7002:/data
env_file:
- ./config/redis/.env.redis
redis-node-01:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7101" ]
network_mode: "host"
volumes:
- ./config/redis:/home/runner/mounted
- ./data/redis/7101:/data
env_file:
- ./config/redis/.env.redis
redis-node-02:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7102" ]
network_mode: "host"
volumes:
- ./config/redis:/home/runner/mounted
- ./data/redis/7102:/data
env_file:
- ./config/redis/.env.redis
redis-node-03:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7103" ]
network_mode: "host"
volumes:
- ./config/redis:/home/runner/mounted
- ./data/redis/7103:/data
env_file:
- ./config/redis/.env.redis
redis-node-04:
image: redis/redis-stack-server:7.4.0-v1
command: [ "bash", "/home/runner/mounted/node.sh", "7104" ]
network_mode: "host"
volumes:
- ./config/redis:/home/runner/mounted
- ./data/redis/7104:/data
env_file:
- ./config/redis/.env.redis
redis-cluster-creator:
image: redis/redis-stack-server:7.4.0-v1
command: bash -c 'redis-cli -a "$$REDIS_PASSWORD" --cluster create $$REDIS_PUBLIC_IP:7101 $$REDIS_PUBLIC_IP:7102 $$REDIS_PUBLIC_IP:7103 $$REDIS_PUBLIC_IP:7104 --cluster-replicas 0 --cluster-yes'
network_mode: "host"
depends_on:
- redis-node-01
- redis-node-02
- redis-node-03
- redis-node-04
env_file:
- ./config/redis/.env.redis
mariadb:
image: mariadb:10.11.5
environment:
- MARIADB_DATABASE=dashboard-globalping
- MARIADB_USER=directus
- MARIADB_PASSWORD=password
- MARIADB_ROOT_PASSWORD=root
ports:
- "13306:3306"
volumes:
- ./config/create-dbs.sql:/docker-entrypoint-initdb.d/01-create-dbs.sql
- ./migrations/create-tables.js.sql:/docker-entrypoint-initdb.d/02-create-tables.sql