-
Notifications
You must be signed in to change notification settings - Fork 67
/
docker-compose.yml
46 lines (46 loc) · 1013 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
version: '3'
services:
web:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
- "8081:8081"
- "8082:8082"
depends_on:
- redis
- mongo
environment:
PROJECT_ENV: prod
logging:
driver: json-file
options:
max-size: "1m"
max-file: "2"
redis:
image: "redis:alpine"
restart: always
command: redis-server --requirepass redis_password
volumes:
- "/tmp/redis:/data"
logging:
driver: json-file
options:
max-size: "1m"
max-file: "2"
mongo:
image: "mongo:5.0.6"
restart: always
volumes:
- "./server/db/mongo_create_indexes.js:/docker-entrypoint-initdb.d/mongo_create_indexes.js"
- "/tmp/mongo:/data/db"
environment:
MONGO_INITDB_DATABASE: mloger
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root_pwd
logging:
driver: json-file
options:
max-size: "1m"
max-file: "2"