forked from cjlee112/socraticqs2
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdev.yml
70 lines (62 loc) · 1.4 KB
/
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
version: '3'
services:
dev_app:
container_name: dev_cr_app
env_file: ./envs/local.env
build:
context: .
dockerfile: Dockerfile
image: dev_cr_app:latest
command: python manage.py runserver 0.0.0.0:8000 --settings=mysite.settings.docker
volumes:
- .:/app
ports:
- "8000:8000"
links:
- dev_postgres
- dev_mongo
- dev_memcached
- dev_celery
dev_postgres:
container_name: dev_cr_postgres
image: postgres:9.6
env_file: ./envs/local.env
volumes:
- dev_cr_db:/var/lib/postgresql/data/
dev_mongo:
container_name: dev_cr_mongo
image: mongo:latest
expose:
- "27017"
volumes:
- dev_cr_mongo:/data/db
dev_memcached:
container_name: dev_cr_memcached
image: memcached:latest
dev_celery:
container_name: dev_cr_celery
build:
context: .
dockerfile: Dockerfile.celery
command: celery worker --config ../.conf/celery/celeryconfig.py -A mysite --loglevel=INFO -B
env_file: ./envs/local.env
volumes:
- ./:/home/user/app
links:
- dev_rabbit
- dev_redis
dev_rabbit:
container_name: dev_cr_rabbit
image: rabbitmq:latest
dev_redis:
container_name: dev_cr_redis
image: redis:latest
react:
build:
context: .
dockerfile: Dockerfile.node
volumes:
- ./:/app
volumes:
dev_cr_db:
dev_cr_mongo: