-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
92 lines (85 loc) · 2.06 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
version: '3.7'
services:
supernova:
container_name: sn_django
image: supernova
ports:
- "127.0.0.1:1893:1893"
environment:
SN_CONFIG: /conf/settings.json
volumes:
- /supernova/http:/http:rw
restart: unless-stopped
nginx:
container_name: sn_nginx
image: nginx
ports:
- "127.0.0.1:80:80"
- "127.0.0.1:443:443"
volumes:
- /supernova/http:/http:ro
- /nginx/conf:/etc/nginx:ro
- /letsencrypt:/etc/letsencrypt:ro
restart: unless-stopped
postgres:
container_name: sn_postgres
image: "mdillon/postgis:11"
environment:
POSTGRES_DB: supernova
POSTGRES_USER: supernova
POSTGRES_PASSWORD: changeme
networks:
default:
aliases:
- postgres
ports:
- "127.0.0.1:5432:5432"
volumes:
- /postgres/conf:/etc/postgresql:ro
- /postgres/data:/var/lib/postgresql/data:rw
restart: unless-stopped
command: postgres -c 'config_file=/etc/postgresql/postgresql.conf'
redis:
container_name: sn_redis
image: "redis:5"
networks:
default:
aliases:
- redis
restart: unless-stopped
elastic:
container_name: sn_elastic
image: "elasticsearch:7.5.1"
volumes:
- /elastic/conf/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
- /elastic/conf/jvm.options:/usr/share/elasticsearch/config/jvm.options:ro
- elastic_data:/usr/share/elasticsearch/data:rw
networks:
default:
aliases:
- elastic
- elasticsearch
ports:
- "127.0.0.1:9200:9200"
ulimits:
memlock:
soft: -1
hard: -1
restart: unless-stopped
logstash:
container_name: sn_logstash
image: "logstash:7.5.1"
volumes:
- ./conf/logstash:/usr/share/logstash/config:ro
entrypoint: logstash -f /usr/share/logstash/config/logstash.conf
networks:
default:
aliases:
- logstash
restart: unless-stopped
volumes:
elastic_data:
driver: local
networks:
default:
driver: bridge