-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
166 lines (156 loc) · 4.24 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
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
version: "2.3"
services:
portfolio-redis:
image: redis:6.2-alpine
container_name: portfolio-redis
volumes:
- ./dockerdata/redis/data:/data
networks:
- portfolionet
restart: always
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
start_period: 60s
interval: 60s
command: redis-server --appendonly yes
portfolio-postgres:
image: postgres:11-alpine
container_name: portfolio-postgres
environment:
- POSTGRES_PASSWORD=$PORTFOLIO_DB_PASSWORD
- POSTGRES_USER=$PORTFOLIO_DB_USER
- POSTGRES_DB=$PORTFOLIO_DB_NAME
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ./dockerdata/postgres/11/data:/var/lib/postgresql/data/pgdata
networks:
- portfolionet
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
start_period: 60s
interval: 60s
portfolio-django:
build: ./src
image: portfolio-django
container_name: portfolio-django
environment:
- POSTGRES_PASSWORD=$PORTFOLIO_DB_PASSWORD
- POSTGRES_USER=$PORTFOLIO_DB_USER
- POSTGRES_DB=$PORTFOLIO_DB_NAME
expose:
- 8200
volumes:
- ./src:/django
- ./docs/build:/docs/build
- ./logs:/logs
- $PORTFOLIO_ASSETS:/django/assets
- ./docker/imagemagick/policy.xml:/etc/ImageMagick-6/policy.xml
networks:
- portfolionet
restart: always
healthcheck:
test: ["CMD-SHELL", "curl --fail http://localhost:8200/health || exit 1"]
start_period: 60s
interval: 60s
depends_on:
- portfolio-postgres
- portfolio-redis
- portfolio-lool
- portfolio-clamav
portfolio-rq-worker-1:
build: ./src
image: portfolio-django
container_name: portfolio-rq-worker-1
environment:
- POSTGRES_PASSWORD=$PORTFOLIO_DB_PASSWORD
- POSTGRES_USER=$PORTFOLIO_DB_USER
- POSTGRES_DB=$PORTFOLIO_DB_NAME
volumes_from:
- portfolio-django
networks:
- portfolionet
restart: always
depends_on:
- portfolio-postgres
- portfolio-redis
- portfolio-lool
command: python manage.py rqworker default
portfolio-rq-worker-2:
build: ./src
image: portfolio-django
container_name: portfolio-rq-worker-2
environment:
- POSTGRES_PASSWORD=$PORTFOLIO_DB_PASSWORD
- POSTGRES_USER=$PORTFOLIO_DB_USER
- POSTGRES_DB=$PORTFOLIO_DB_NAME
volumes_from:
- portfolio-django
networks:
- portfolionet
restart: always
depends_on:
- portfolio-postgres
- portfolio-redis
- portfolio-lool
command: python manage.py rqworker high default
portfolio-rq-worker-3:
build: ./src
image: portfolio-django
container_name: portfolio-rq-worker-3
environment:
- POSTGRES_PASSWORD=$PORTFOLIO_DB_PASSWORD
- POSTGRES_USER=$PORTFOLIO_DB_USER
- POSTGRES_DB=$PORTFOLIO_DB_NAME
volumes_from:
- portfolio-django
networks:
- portfolionet
restart: always
depends_on:
- portfolio-postgres
- portfolio-redis
- portfolio-lool
command: python manage.py rqworker high video default
portfolio-rq-scheduler:
build: ./src
image: portfolio-django
container_name: portfolio-rq-scheduler
environment:
- POSTGRES_PASSWORD=$PORTFOLIO_DB_PASSWORD
- POSTGRES_USER=$PORTFOLIO_DB_USER
- POSTGRES_DB=$PORTFOLIO_DB_NAME
volumes_from:
- portfolio-django
networks:
- portfolionet
restart: always
depends_on:
- portfolio-postgres
- portfolio-redis
- portfolio-lool
command: python manage.py rqscheduler
portfolio-clamav:
image: clamav/clamav:stable
container_name: portfolio-clamav
networks:
- portfolionet
restart: always
portfolio-lool:
image: collabora/code:4.2.3.1
container_name: portfolio-lool
volumes:
- ./docker/loolwsd.xml:/etc/loolwsd/loolwsd.xml
networks:
- portfolionet
restart: always
portfolio-cron:
image: paradoxon/alpine-cron
container_name: portfolio-cron
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./docker/cron/crontab:/tmp/crontab
network_mode: "none"
restart: always
networks:
portfolionet: