-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (40 loc) · 1.07 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
version: '2'
services:
pgAdmin:
image: fenglc/pgadmin4
ports:
- "5050:5050"
container_name: pgAdmin
postgresql:
build: .docker/postgesql
ports:
- "5432:5432"
volumes:
- ./data/postgresql:/var/lib/postgresql
environment:
- POSTGRES_USER=db_user
- POSTGRES_PASSWORD=db_password
- POSTGRES_DB=demo
privileged: true
container_name: postgresql
depends_on:
- pgAdmin
elasticsearch:
image: elasticsearch:latest
ports:
- "9200:9200"
volumes:
- ./data/elasticsearch:/var/lib/elasticsearch/data
- ./data/log/elasticsearch:/var/log/elasticsearch
container_name: elasticsearch
apache:
build: .docker/apache
ports:
- "80:80"
volumes:
- .:/var/www/html
- ./data/sessions:/var/lib/sessions
container_name: apache
depends_on:
- elasticsearch
- postgresql