-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compse.yml
39 lines (34 loc) · 1007 Bytes
/
docker-compse.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
version: '3.1'
services:
mongo:
image: mongo:4.0.10
restart: always
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
MONGO_INITDB_DATABASE: junior-offers
volumes:
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
mongo-express:
image: mongo-express
restart: always #restart the container regardless of the exit status
ports:
- "8081:8081"
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/ # mongodb://{mongo-image-username}:{mongo-image-password}@{mongo-image-name}:{port}
redis:
image: redis
ports:
- "63792:6379"
restart: always
redis-commander:
image: rediscommander/redis-commander:latest
restart: always
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- "8082:8081"