-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (61 loc) · 1.79 KB
/
docker-compose.yml
File metadata and controls
68 lines (61 loc) · 1.79 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
version: '3.8'
services:
justinsight_service:
build:
context: .
dockerfile: .docker/Dockerfile
environment:
- MONGODB_URI=mongodb://myuser:mypassword@mongo:27017/justinsightdb?authSource=admin
# bind-mount your repo and the shared EBS volume
volumes:
- ./:/workspace:cached
- ./shared:/workspace/shared:cached
# ensure entrypoint.sh runs (clones & checks out the right branch)
#entrypoint: ["/usr/local/bin/entrypoint.sh"]
command: ["bash"]
stdin_open: true
tty: true
redis:
image: redis:7-alpine
ports:
- "6379:6379"
celery_worker:
build:
context: .
dockerfile: .docker/Dockerfile
environment:
- MONGODB_URI=mongodb://myuser:mypassword@mongo:27017/justinsightdb?authSource=admin
volumes:
- .:/workspace:cached
- mongo_data:/data/db
depends_on:
- redis
- mongo
#entrypoint: ["/usr/local/bin/entrypoint.sh"]
command: ["celery", "-A", justinsight.celery, "worker", "--loglevel=info"] #the lowercase j is actually so important
celery_beat:
build:
context: .
dockerfile: .docker/Dockerfile
environment:
- MONGODB_URI=mongodb://myuser:mypassword@mongo:27017/justinsightdb?authSource=admin
volumes:
- .:/workspace:cached
depends_on:
- redis
#entrypoint: ["/usr/local/bin/entrypoint.sh"]
command: ["celery", "-A", justinsight.celery, "beat", "--loglevel=info"] #the lowercase j is actually so important
mongo:
image: mongo:latest
container_name: mongo
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: myuser
MONGO_INITDB_ROOT_PASSWORD: mypassword
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
- .:/workspace:cached
volumes:
mongo_data: