-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
60 lines (58 loc) · 1.29 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
version: '3.8'
services:
dev:
build:
context: .
target: dev
ports:
- 7878:7878
# we need privilege to access host usb devices like cameras
privileged: true
volumes:
- ./:/app
# Overrides default command so things don't shut down after the process ends.
command: /bin/bash -c "while sleep 1000; do :; done"
depends_on:
- mongodb
- redis
environment:
- MONGO_DB_SERVER=mongodb://mongodb:27017
mongodb:
image: mongo:4.4.8
restart: always
ports:
- 27017:27017
volumes:
- dbdata:/data/db
healthcheck:
test: "exit 0"
celeryworker:
build:
context: .
target: dev
# we need privilege to access host usb devices like cameras
user: root
privileged: true
volumes:
- ./:/app
command: celery -A countdart.celery_app.celery_app worker --loglevel=INFO
healthcheck:
test: "exit 0"
redis:
image: redis
ports:
- '6379:6379'
healthcheck:
test: "exit 0"
frontend:
build:
context: .
dockerfile: ./frontend/Dockerfile
ports:
- 3000:3000
volumes:
- ./:/app
# Overrides default command so things don't shut down after the process ends.
command: sh -c "while sleep 1000; do :; done"
volumes:
dbdata: