-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
54 lines (51 loc) · 1.22 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
54
version: '3.7'
volumes:
redis_data:
driver: local
mongo_data:
driver: local
services:
redis:
image: 'docker.io/bitnami/redis:6.0-debian-10'
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
volumes:
- 'redis_data:/bitnami/redis/data'
expose:
- "6379"
ports:
- 6379:6379
mongo:
image: 'mongo'
restart: always
volumes:
- mongo_data:/data/db
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
environment:
- MONGO_INITDB_DATABASE=admin
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=password
expose:
- "27017"
ports:
- 27017:27017
server:
build:
context: .
dockerfile: Dockerfile
environment:
docker: "true"
# assuming 5000 port in .env
ports:
- 5000:5000
volumes:
- ./:/app
env_file:
- .env
depends_on:
- redis
- mongo
links:
- redis
- mongo