-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (56 loc) · 1.46 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
55
56
57
58
59
60
services:
crawling-service:
build:
context: .
dockerfile: Dockerfile
restart: 'no'
env_file:
- ./.env
ports:
- 3300:3000
depends_on:
mongo:
condition: service_healthy
volumes:
- '.:/app'
- /app/node_modules
command: ['npm', 'start']
mongo:
image: mongo:4.4
restart: 'no'
environment:
MONGO_INITDB_ROOT_USERNAME: devel
MONGO_INITDB_ROOT_PASSWORD: devel
healthcheck:
test: echo 'db.runCommand({serverStatus:1}).ok' | mongo -u devel -p devel --quiet
interval: 10s
timeout: 10s
retries: 60
start_period: 20s
ports:
- 27017
volumes:
- mongo_data:/data/db
cache:
image: redis:6.2-alpine
restart: always
ports:
- '6379:6379'
volumes:
- redis_data:/data
mongo-express:
image: mongo-express
restart: 'no'
ports:
- 27080:8081
depends_on:
mongo:
condition: service_healthy
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: devel
ME_CONFIG_MONGODB_ADMINPASSWORD: devel
ME_CONFIG_MONGODB_URL: mongodb://devel:devel@mongo:27017/
ME_CONFIG_BASICAUTH: 'false'
volumes:
mongo_data:
redis_data: