-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·180 lines (165 loc) · 3.88 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
version: "3.7"
services:
php-fpm:
build: docker/php-fpm
container_name: php-fpm
restart: on-failure
working_dir: /var/www
environment:
TZ: "Europe/Paris"
PHP_IDE_CONFIG: "serverName=HA-SERVER"
XDEBUG_CONFIG: "idekey=PHPSTORM remote_enable=1 remote_host=ha.docker-ip.for.xdebug.internal"
# add to /etc/hosts [YOUR_IP] ha.docker-ip.for.xdebug.internal to have xdebug working
volumes:
- ./data:/var/www
networks:
- elastic
webserver:
image: nginx:alpine
container_name: webserver
restart: on-failure
working_dir: /var/www
volumes:
- ./data:/var/www
- ./docker/nginx/sf3.conf:/etc/nginx/conf.d/sf3.conf
- ./docker/nginx/sf4.conf:/etc/nginx/conf.d/sf4.conf
- ./docker/nginx/sf5.conf:/etc/nginx/conf.d/sf5.conf
ports:
- "80:80"
networks:
- elastic
mysql:
image: mysql:8.0
container_name: mysql
restart: on-failure
working_dir: /var/www
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ha_dev
networks:
- elastic
postgresql:
image: postgres:12-alpine
container_name: postgresql
restart: on-failure
working_dir: /var/www
volumes:
- .:/var/www
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: admin
POSTGRES_DB: ha_dev
ports:
- "5432:5432"
networks:
- elastic
mongo:
image: mongo:latest
container_name: mongo
restart: on-failure
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: admin
networks:
- elastic
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
restart: on-failure
links:
- "mysql:mysql"
environment:
TZ: "Europe/Paris"
PMA_HOST: mysql
PMA_PORT: 3306
ports:
- "81:80"
networks:
- elastic
phppgadmin:
image: dockage/phppgadmin:latest
container_name: phppgadmin
restart: on-failure
links:
- "postgresql:postgresql"
environment:
PHP_PG_ADMIN_SERVER_HOST: phppgadmin
PHP_PG_ADMIN_SERVER_PORT: 5432
PHP_PG_ADMIN_SERVER_DEFAULT_DB: ha_dev
PHP_PG_ADMIN_AUTO_COMPLETE: default on
ports:
- "82:80"
networks:
- elastic
adminer:
image: adminer
container_name: adminer
restart: on-failure
environment:
TZ: "Europe/Paris"
links:
- "postgresql:postgresql"
- "mysql:mysql"
ports:
- "83:8080"
networks:
- elastic
elasticsearch-head:
container_name: elasticsearch-head
depends_on:
- elasticsearch
image: tobias74/elasticsearch-head:6
ports:
- "9100:9100"
networks:
- elastic
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2
container_name: elasticsearch
environment:
- "node.name=elasticsearch"
- "cluster.name=es-docker-cluster"
- "cluster.initial_master_nodes=elasticsearch"
- "bootstrap.memory_lock=true"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- data01:/usr/share/elasticsearch/data
ports:
- "9200:9200"
networks:
- elastic
kibana:
image: docker.elastic.co/kibana/kibana:7.6.2
container_name: kibana
ports:
- "5601:5601"
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
networks:
- elastic
logstash:
image: docker.elastic.co/logstash/logstash:7.6.2
container_name: logstash
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
ports:
- "5044:5044"
depends_on:
- elasticsearch
- kibana
networks:
- elastic
volumes:
data01:
driver: local
networks:
elastic:
driver: bridge