-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.rep.yml
71 lines (71 loc) · 1.59 KB
/
docker-compose.rep.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
version: "3.7"
services:
whispr:
image: sanofiiadc/whispr:latest
container_name: whispr
ports:
- 3000:3000
environment:
AUTO_SCHEMA_FILE: schema.gql
INTROSPECTION: "true"
PLAYGROUND: "true"
SSL_VALIDATE: "false"
REPLICASET: rs0
LOG_LEVEL: 5
MONGOOSE_HOST: mongo1
MONGOOSE_PORT: 27017
MONGOOSE_HOST_READ: mongo2
MONGOOSE_PORT_READ: 27017
# MONGOOSE_USERNAME:
# MONGOOSE_PASSWORD:
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_HOST_READ: redis
REDIS_PORT_READ: 6379
# COGNITO_ADMIN_USER:
# COGNITO_ADMIN_PW:
# COGNITO_USER_POOL_ID:
# COGNITO_CLIENT_ID_ADMIN:
# COGNITO_REGION:
# COGNITO_IDENTITY_POOL_ID:
# AWS_CONTAINER_CREDENTIALS_RELATIVE_URI:
# AWS_S3_ENDPOINT:
# AWS_BUCKET_NAME:
networks: ["stack"]
mongo1:
hostname: mongo1
container_name: localmongo1
image: mongo
expose:
- 27017
restart: always
networks: ["stack"]
entrypoint: ["/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0"]
volumes:
- mongodb1:/data/db
mongo2:
hostname: mongo2
container_name: localmongo2
image: mongo
expose:
- 27017
restart: always
networks: ["stack"]
entrypoint: ["/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0"]
volumes:
- mongodb2:/data/db
redis:
image: redis
hostname: redis
container_name: redis
expose:
- 6379
volumes:
- redis:/var/lib/redis
networks: ["stack"]
networks:
stack:
volumes:
mongodb1:
mongodb2:
redis: