-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
123 lines (114 loc) · 2.75 KB
/
docker-compose-dev.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
version: '3.7'
services:
supernova:
container_name: sn_django
image: supernova-dev
ports:
- "127.0.0.1:1893:1893"
environment:
SN_CONFIG: /conf/settings-dev.json
volumes:
- ./source:/source
- ./conf:/conf:ro
- ./data/http:/http:rw
restart: unless-stopped
nginx:
container_name: sn_nginx
image: nginx
ports:
- "127.0.0.1:80:80"
volumes:
- ./conf/nginx:/etc/nginx:ro
- ./data/http:/http: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:
- ./conf/postgres:/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
ports:
- "127.0.0.1:6379:6379"
restart: unless-stopped
elastic:
container_name: sn_elastic
image: "elasticsearch:7.5.1"
environment:
- "ES_JAVA_OPTS=-Xms256m -Xmx256m"
volumes:
- ./conf/elastic/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
- ./conf/elastic/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
ports:
- "127.0.0.1:5959:5959"
restart: unless-stopped
pgadmin:
container_name: sn_pgadmin
image: "dpage/pgadmin4"
volumes:
- pgadmin_data:/var/lib/pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: "admin@supernova"
PGADMIN_DEFAULT_PASSWORD: "changeme"
ports:
- "127.0.0.1:81:80"
restart: unless-stopped
kibana:
container_name: sn_kibana
image: "kibana:7.5.1"
volumes:
- ./conf/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml:ro
ports:
- "127.0.0.1:82:5601"
restart: unless-stopped
volumes:
elastic_data:
driver: local
pgadmin_data:
driver: local
postgres_data:
driver: local
networks:
default:
driver: bridge