forked from clay/clay-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1.37 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
version: '3'
services:
################################################
## Local Sites Setup: ##
## Nginx, Elastic Search, Redis ##
################################################
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
logging:
driver: json-file
ports:
- 80:80
# Event Bus, Postgres Cache and Session Store
redis:
image: redis
logging:
driver: none
ports:
- 6379:6379
volumes:
- ./redis/config/redis.conf:/usr/local/etc/redis/redis.conf
- ./redis/data:/data
# You know, for search
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.6.0
command: elasticsearch
logging:
driver: none
ports:
- 9200:9200
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./elasticsearch/config/logging.yml:/usr/share/elasticsearch/config/logging.yml
- ./elasticsearch/data:/usr/share/elasticsearch/data
# Primary data store
postgres:
image: postgres
restart: always
environment:
- POSTGRES_PASSWORD=example
volumes:
- ./postgres/data:/var/lib/postgresql/data
ports:
- 5432:5432
# Simple GUI for Postgres if you want
adminer:
image: adminer
restart: always
ports:
- 8080:8080