-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
70 lines (66 loc) · 1.58 KB
/
docker-compose.yaml
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
volumes:
redis-data:
mongo-data:
rabbitmq_log:
rabbitmq_data:
services:
bundler:
container_name: bundler
env_file: .env
ports:
- "0.0.0.0:3000:3000"
depends_on:
mongo:
condition: service_started
redis:
condition: service_healthy
restart: true
rabbitmq:
condition: service_healthy
restart: true
build:
context: .
dockerfile: Dockerfile.dev
restart: always
volumes:
- ./src:/home/nonroot/bundler/src
- ./config:/home/nonroot/bundler/config
- ./nodemon.json:/home/nonroot/bundler/nodemon.json
- ./config.json.enc:/home/nonroot/bundler/config.json.enc
- ./.env:/home/nonroot/bundler/.env
redis:
image: redis:latest
container_name: redis
command: ["redis-server", "--appendonly", "yes"]
ports:
- "0.0.0.0:6379:6379"
volumes:
- redis-data:/data
restart: always
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
interval: 5s
timeout: 20s
retries: 5
mongo:
image: mongo:latest
container_name: mongo
restart: always
ports:
- "0.0.0.0:27017:27017"
volumes:
- mongo-data:/data/db
rabbitmq:
image: heidiks/rabbitmq-delayed-message-exchange:3.8.3-management
container_name: "rabbitmq"
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 5s
timeout: 20s
retries: 5
ports:
- "0.0.0.0:5672:5672"
- "0.0.0.0:15672:15672"
volumes:
- rabbitmq_log:/var/log/rabbitmq
- rabbitmq_data:/var/lib/rabbitmq