-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
79 lines (74 loc) · 1.73 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
version: '2'
services:
nginx-proxy:
image: nginxproxy/nginx-proxy
container_name: nginx-proxy
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./etc/nginx/proxy.conf:/etc/nginx/conf.d/proxy.conf
- ./etc/nginx/certs:/etc/nginx/certs
networks:
- nginx-proxy
phpmyadmin:
container_name: phpmyadmin
image: phpmyadmin/phpmyadmin
ports:
- 8080:80
environment:
PMA_HOSTS: instance_db_1,instance_db_2
PMA_PORTS: 3306,3306
external_links:
- instance_db_1
- instance_db_2
volumes:
- ./etc/phpmyadmin/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php
networks:
- databases
elasticsearch:
container_name: elasticsearch
hostname: elasticsearch.docker
build:
context: elasticsearch7/
ports:
- 9200:9200
volumes_from:
- esdata
environment:
- discovery.type=single-node
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms1012m -Xmx1012m"
ulimits:
memlock:
soft: -1
hard: -1
networks:
- elastic-net
esdata:
image: tianon/true
volumes:
- ./persistent/elasticsearch7:/usr/share/elasticsearch/data
# eskibana:
# container_name: eskibana
# hostname: eskibana.docker
# image: docker.elastic.co/kibana/kibana:7.7.1
# ports:
# - 5601:5601
# links:
# - elasticsearch
# environment:
# SERVER_NAME: eskibana
# ELASTICSEARCH_URL: http://elasticsearch:9200
# networks:
# - elastic-net
networks:
elastic-net:
external: true
nginx-proxy:
external: true
databases:
external: true