-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose-dev.yml
85 lines (75 loc) · 1.49 KB
/
docker-compose-dev.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '3.7'
services:
api:
build:
context: ./api
dockerfile: Dockerfile.dev
image: api
container_name: api
volumes:
- ./data/uploads:/usr/src/app/uploads
ports:
- 5000:5000
env_file:
- server.env
environment:
- FLASK_CONFIG=development
- FLASK_ENV=development
depends_on:
- mongodb
- redis
privileged: true
mongodb:
image: mongo:latest
ports:
- 27017
volumes:
- ./db-data:/data/db
nginx:
build:
context: ./nginx
dockerfile: Dockerfile.dev
restart: unless-stopped
ports:
- 8080:8080
depends_on:
- api
- ui
ui:
build:
context: ./nginx/data_visualization
dockerfile: Dockerfile.dev
volumes:
- './nginx/data_visualization:/usr/src/app'
- '/usr/src/app/node_modules'
ports:
- 3000:3000
environment:
- NODE_ENV=development
depends_on:
- api
worker:
image: api
command: rq worker default image statistics --url redis://redis:6379 --with-scheduler
env_file:
- server.env
volumes:
- ./data/uploads:/usr/src/app/uploads
depends_on:
- redis
- api
privileged: true
rq-dashboard:
build:
context: ./rq-dashboard
dockerfile: Dockerfile
ports:
- "9181:9181"
environment:
- RQ_DASHBOARD_REDIS_URL=redis://redis:6379
depends_on:
- redis
redis:
image: redis:6.2-alpine
volumes:
db-data: