-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
151 lines (151 loc) · 3.17 KB
/
docker-compose.yml
File metadata and controls
151 lines (151 loc) · 3.17 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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# make sure to `git submodule update --init` before building images
version: "3"
services:
web:
restart: always
image: coddingtonbear/intheam_web
build:
context: ./
dockerfile: ./docker/django/Dockerfile
args:
SUPERVISORD_CONFIG: ./docker/django/supervisord.conf
links:
- postgres:postgres
- redis:redis
- memcached:memcached
- taskd:taskd
- sse:sse
env_file:
- .env
- .private.env
volumes:
- ./:/data/web
- task-data:/task_data
- django-static-assets:/django-static
networks:
- backend
sse:
restart: always
image: coddingtonbear/intheam_sse
build:
context: ./
dockerfile: ./docker/django/Dockerfile
args:
SUPERVISORD_CONFIG: ./docker/django/supervisord.sse.conf
expose:
- "8001"
links:
- postgres:postgres
- redis:redis
- memcached:memcached
- taskd:taskd
env_file:
- .env
- .private.env
volumes:
- ./:/data/web
- task-data:/task_data
networks:
- backend
celery:
restart: always
image: coddingtonbear/intheam_celery
build:
context: ./
dockerfile: ./docker/django/Dockerfile
args:
SUPERVISORD_CONFIG: ./docker/django/supervisord.celery.conf
CRONTAB: ./docker/django/celery.crontab
links:
- postgres:postgres
- redis:redis
- memcached:memcached
- taskd:taskd
env_file:
- .env
- .private.env
ports:
- "25:8025"
volumes:
- ./:/data/web
- task-data:/task_data
networks:
- backend
static-builder:
image: coddingtonbear/intheam_static-builder
build:
dockerfile: ./docker/static-builder/Dockerfile
context: ./
environment:
BUILD_MODE: development
volumes:
- ./ui:/app
- static-assets:/app/dist
env_file:
- .env
- .private.env
networks:
- backend
nginx:
restart: always
image: coddingtonbear/intheam_nginx
build:
dockerfile: ./docker/nginx/Dockerfile
context: ./
environment:
DJANGO_DEBUG: "0"
ports:
- "80:80"
- "443:443"
volumes:
- ./docker/nginx/secrets:/certificates
- static-assets:/app
- django-static-assets:/django-static
networks:
- backend
links:
- web:web
- static-builder:static-builder
postgres:
restart: always
image: postgres:alpine
volumes:
- db-data:/var/lib/postgresql/data
env_file:
- .env
networks:
- backend
redis:
restart: always
image: redis:latest
networks:
- backend
memcached:
image: "bitnami/memcached:latest"
networks:
- backend
taskd:
image: coddingtonbear/intheam_taskd
build:
dockerfile: ./docker/taskd/Dockerfile
context: ./
ports:
- "53589:53589"
networks:
- backend
links:
- redis:redis
volumes:
- taskd-data:/var/taskd/orgs
- ./docker/taskd/secrets:/var/taskd/pki
volumes:
db-data:
external: true
task-data:
external: true
taskd-data:
external: true
django-static-assets:
static-assets:
networks:
backend: