This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
forked from zentralopensource/zentral
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (75 loc) · 1.67 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
version: '2'
services:
db:
image: postgres:11
env_file:
- ./conf/start/docker/postgres.env
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:7.3.1
environment:
ES_JAVA_OPTS: -Xms512m -Xmx512m
discovery.type: single-node
networks:
default:
aliases:
- elasticsearch
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
rabbitmq:
image: rabbitmq:3
promsrv:
build: ./conf/start/docker/prometheus/
volumes:
- prometheus_sd:/prometheus_sd
nginx:
image: nginx:stable
ports:
- "443:443"
depends_on:
- promsrv
- web
volumes:
- ./conf/start/docker/nginx/conf.d/:/etc/nginx/conf.d/
- ./conf/start/docker/tls:/etc/nginx/tls
- web_static_root:/zentral_static
web:
extends:
file: docker-compose.common.yml
service: app
command: runserver
depends_on:
- db
- elastic
- rabbitmq
volumes:
- web_media_root:/var/zentral
- web_static_root:/zentral_static
workers:
extends:
file: docker-compose.common.yml
service: app
command: runworkers --external-hostname workers --prometheus --prometheus-sd-file /prometheus_sd/workers.yml
depends_on:
- db
- elastic
- rabbitmq
volumes:
- web_media_root:/var/zentral
- prometheus_sd:/prometheus_sd
celery:
extends:
file: docker-compose.common.yml
service: app
command: celery
depends_on:
- db
- rabbitmq
volumes:
- web_media_root:/var/zentral
networks:
default:
volumes:
elasticsearch_data:
prometheus_sd:
web_media_root:
web_static_root: