-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (48 loc) · 1.12 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
version: "3.8"
services:
mongo:
image: ${MONGO_IMAGE}
container_name: kompakkt-mongo
ports:
- "127.0.0.1:27017:27017"
volumes:
- ./.mongo-data:/data/db
restart: unless-stopped
healthcheck:
test: ["CMD", "mongosh", "--eval", '''db.runCommand("ping").ok''']
interval: 10s
timeout: 5s
retries: 5
redis:
image: ${REDIS_IMAGE}
container_name: kompakkt-redis
ports:
- "127.0.0.1:6379:6379"
ulimits:
memlock: -1
command: ["--maxmemory=1gb", "--proactor_threads=1"]
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
mailhog:
image: ${MAILHOG_IMAGE}
container_name: kompakkt-mailhog
ports:
- "127.0.0.1:1025:1025"
- "127.0.0.1:8025:8025"
command: ["-smtp-bind-addr", ":1025"]
restart: unless-stopped
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "1025"]
interval: 10s
timeout: 5s
retries: 5
networks:
default:
name: kompakkt-network
volumes:
mongo-data:
name: kompakkt-mongo-data