-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
117 lines (108 loc) · 2.15 KB
/
docker-compose.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
version: '3'
services:
django:
container_name: django.core
build:
context: .
dockerfile: DockerFile.dev.Backend
restart: always
env_file:
- .env
environment:
- INSTANCE_ROLE=website
depends_on:
- redis
- celery
volumes:
- .:/app
- static:/app/static
- media:/app/media
ports:
- 8005:8005
networks:
backend:
ipv4_address: 172.25.0.2
# command: gunicorn main.wsgi:application --bind 0.0.0.0:8005
command: python3 /app/manage.py runserver 0.0.0.0:8005
async_server:
container_name: async.core
build:
context: .
dockerfile: DockerFile.dev.Backend
restart: always
env_file:
- .env
depends_on:
- django
links:
- django:django
volumes:
- .:/app
ports:
- 8080:8080
networks:
backend:
ipv4_address: 172.25.0.3
command: python3 /app/async_server.py
redis:
container_name: redis.core
image: redis:3.2-alpine
command: redis-server --appendonly yes
restart: always
ports:
- 6475:6475
volumes:
- redis:/data
networks:
backend:
ipv4_address: 172.25.0.4
celery:
container_name: celery.core
build:
context: .
dockerfile: DockerFile.dev.Backend
env_file:
- .env
depends_on:
- redis
volumes:
- .:/app
restart: always
networks:
backend:
ipv4_address: 172.25.0.5
command: celery -A main worker -B -E -l info
# command: celery -A main beat -l info
# node:
# container_name: node.core
# build:
# context: .
# dockerfile: DockerFile.dev.Frontend
# command: npm run watch
memcached:
image: memcached:1.4-alpine
nginx:
container_name: nginx.core
depends_on:
- django
- async_server
build: ./nginx
ports:
- 80:80
restart: always
volumes:
- static:/app/static
- media:/app/media
networks:
backend:
ipv4_address: 172.25.0.10
networks:
backend:
driver: bridge
ipam:
config:
- subnet: 172.25.0.0/16
volumes:
redis: {}
static: {}
media: {}