-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (61 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
66 lines (61 loc) · 1.21 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
version: '2'
volumes:
collected_static: {}
services:
# Django Frontend
django_project:
build: .
image: stack-django
expose:
- "8080"
volumes:
- collected_static:/src/collected_static
- .:/src
environment:
- REDIS_HOSTNAME=redis
links:
- redis
# Redis (message broker)
redis:
image: redis:latest
hostname: redis
expose:
- "6379"
# Nodejs Server
nodejs_server:
build: ./nodejs_code
image: stack-nodejs
expose:
- "4000"
environment:
- NODEJS_HOST=cts_nodejs
- NODEJS_PORT=4000
- REDIS_HOSTNAME=redis
- REDIS_PORT=6379
links:
- redis
- celery_worker
# Celery Worker
celery_worker:
build: ./celery_code
image: stack-celery
command: celery worker -A tasks -Q testing -l info
links:
- redis
- django_project
environment:
- REDIS_HOSTNAME=redis
- DOCKER_HOSTNAME=${HOSTNAME}
# Nginx Server
nginx:
restart: always
build: ./nginx_code
image: stack-nginx
ports:
- "8080:80"
# - "443:443"
links:
- django_project:uwsgi_django
- nodejs_server:nodejs_server
volumes_from:
- django_project:ro