-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
47 lines (45 loc) · 1020 Bytes
/
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
version: "3"
services:
oplogtoredis:
build:
context: .
dockerfile: ./Dockerfile.dev
depends_on:
- mongo
- redis
command:
- /wait-for.sh
- mongo:27017
- '--'
- /wait-for.sh
- redis:6379
- '--'
- sh
- -c
- |
fresh -c scripts/fresh-runner.conf
environment:
- OTR_MONGO_URL=mongodb://mongo/dev
- OTR_REDIS_URL=redis://redis,redis-sentinel://redis-sentinel:26379?sentinelMasterId=mymaster
- OTR_LOG_DEBUG=true
ports:
- 9000:9000
volumes:
- ./scripts/wait-for.sh:/wait-for.sh
- .:/oplogtoredis
mongo:
build:
context: .
dockerfile: ./Dockerfile.dev.mongo
volumes:
- './.data/mongo-data:/data/db'
redis:
image: redis:6.0
redis-sentinel-master:
image: redis:6.0
environment:
- REDIS_REPLICATION_MODE=master
redis-sentinel:
image: redis-sentinel:latest
environment:
- REDIS_SENTINEL_MASTER=redis-sentinel-master