-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (52 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
58 lines (52 loc) · 1.23 KB
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
version: '2'
services:
db:
container_name: 'demo-db'
env_file:
- .env
image: postgres:9.6-alpine
ports:
- "5432:5432"
volumes:
- ./postgres/data:/var/lib/postgresql/data
- ./templates/init-user-db.sh:/docker-entrypoint-initdb.d/init-user-db.sh
# Image docs here: https://elk-docker.readthedocs.io
elk:
container_name: 'demo-elk'
image: sebp/elk:512
ports:
- "5601:5601"
- "9200:9200"
- "5044:5044"
volumes:
- elk-data:/var/lib/elasticsearch
memcached:
container_name: 'demo-memcached'
image: memcached:1.4-alpine
ports:
- "11211:11211"
nginx:
container_name: 'demo-nginx'
extra_hosts:
- "dockerhost:${DOCKERHOST_IP}"
- "dockerhost_alias:${DOCKERHOST_ALIAS_IP}"
image: nginx:1.11-alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/html/50x.html:/etc/nginx/html/50x.html
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./ssl:/ssl
- ${PWD}/../docker-demo-app:/app
redis:
container_name: 'demo-redis'
image: redis:3.2-alpine
ports:
- "6379:6379"
volumes:
- redis-data:/data
volumes:
elk-data:
redis-data: