-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
docker-compose.yml
62 lines (59 loc) · 1.34 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
version: '3'
services:
screeps:
build:
context: .
args:
ARCH: amd64
UID: 1000
GID: 1000
image: screepers/screeps-launcher
volumes:
- ./config.yml:/screeps/config.yml
- screeps-data:/screeps
ports:
- "${SCREEPS_LAUNCHER_HOST:-0.0.0.0}:21025:21025/tcp"
environment:
MONGO_HOST: mongo
REDIS_HOST: redis
depends_on:
mongo:
condition: service_healthy
redis:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "sh", "-c", "curl --fail --silent http://127.0.0.1:21025/"]
interval: 30s
timeout: 5s
start_period: 5s
start_interval: 5s
retries: 3
mongo:
image: mongo:8
volumes:
- mongo-data:/data/db
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "sh", "-c", "echo 'db.runCommand(\"ping\").ok' | mongosh localhost:27017/test --quiet"]
interval: 30s
timeout: 5s
start_period: 5s
start_interval: 5s
retries: 3
redis:
image: redis:7
volumes:
- redis-data:/data
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 5s
start_period: 5s
start_interval: 5s
retries: 3
volumes:
redis-data:
mongo-data:
screeps-data: