forked from CMSCompOps/wtc-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-all.yml
57 lines (56 loc) · 1.31 KB
/
docker-compose-all.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
version: '3'
services:
nginx:
restart: always
image: nginx:1.11.6-alpine
ports:
- 8000:8000
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./django
mongo:
restart: always
image: mongo:4.0.0
expose:
- 8081
ports:
- 8081:8081
volumes:
- ./docker/mongo/data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
backend:
restart: always
build:
context: .
dockerfile: ./docker/django/Dockerfile
volumes:
- .:/django
links:
- mongo
entrypoint:
- /django-entrypoint.sh
expose:
- 8000
frontend:
restart: always
build:
context: .
dockerfile: ./docker/web/Dockerfile
volumes:
- .:/django
links:
- backend
entrypoint:
- /web-entrypoint.sh
rabbitmq:
restart: always
image: rabbitmq:alpine
hostname: "wtc-rabbit"
expose:
- 5672
ports:
- 5672:5672
volumes:
- ./docker/rabbitmq/data:/var/lib/rabbitmq/mnesia