-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (74 loc) · 1.45 KB
/
docker-compose.yml
File metadata and controls
81 lines (74 loc) · 1.45 KB
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
72
73
74
75
76
77
78
79
80
81
services:
redis:
image: redis:alpine
ports:
- "127.0.0.1:6379:6379"
mongodb:
image: mongo:latest
volumes:
- db-data:/data/db
ports:
- "127.0.0.1:27017:27017"
web:
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules # Prevent overwriting of `node_modules`
ports:
- "127.0.0.1:3000:3000"
environment:
NODE_ENV: development
env_file:
- .env.docker
- .env.docker.local
command: yarn run start:dev
depends_on:
- redis
- mongodb
nodejs_worker:
build: .
command: node dist/crawler.main.js
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules # Prevent overwriting of `node_modules`
env_file:
- .env.docker
- .env.docker.local
depends_on:
- redis
- mongodb
python_worker:
build: ./workers
volumes:
- ./workers:/app
env_file:
- .env.docker
- .env.docker.local
depends_on:
- redis
- mongodb
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
volumes:
- ./frontend:/app
- /app/node_modules
ports:
- "127.0.0.1:3030:3030"
depends_on:
- web
widget:
build:
context: ./widget
dockerfile: Dockerfile.dev
args:
- PIRSCH_KEY
ports:
- "127.0.0.1:3031:1234"
depends_on:
- web
volumes:
db-data: