-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (54 loc) · 1.08 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
version: '3'
services:
web:
image: nginx
volumes:
- "./:/var/www"
- ".docker/nginx/conf/default.conf:/etc/nginx/conf.d/default.conf"
ports:
- "80:80"
links:
- php-fpm
db:
image: postgres
restart: always
ports:
- 5432:5432
volumes:
- db-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: admin
POSTGRES_USER: admin
POSTGRES_DB: default
adminer:
image: adminer
restart: always
ports:
- 8080:8080
php-fpm:
build: .docker/php-fpm
volumes:
- "./:/var/www"
links:
- db
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:6.1.1
environment:
- discovery.type=single-node
- network.host=0.0.0.0
ports:
- 9200:9200
- 9300:9300
volumes:
- esdata:/usr/share/elasticsearch/data
kibana:
image: docker.elastic.co/kibana/kibana:6.1.1
ports:
- 5601:5601
volumes:
- .docker/kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml
links:
- elastic
volumes:
db-data:
esdata: