-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (40 loc) · 1.13 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
version: '3'
services:
elasticsearch:
container_name: switchapp_elasticsearch
image: elasticsearch:1.7.6 # 1.7.6 in production
ports:
- "9200:9200"
volumes:
- ./elasticsearch/data:/usr/share/elasticsearch/data
# - ./elasticsearch/plugins:/usr/share/elasticsearch/plugins
- ./elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
postgres:
build: ./postgres
container_name: switchapp_postgres
environment:
- POSTGRES_USER=upward
- POSTGRES_PASSWORD=upward
- POSTGRES_DB=upward
image: switchapp/postgres
volumes:
- ./postgres/data:/var/lib/postgresql/data
redis:
container_name: switchapp_redis
image: redis:3.2 # 2.8.12 in production
ports:
- "6379:6379"
server:
build: ./server
command: docker-entrypoint
container_name: switchapp_server
environment:
DATABASE_URL: 'postgres://upward:upward@postgres:5432/upward'
REDISTOGO_URL: 'redis://redis:6379'
image: switchapp/server
links:
- postgres
ports:
- "8000:8000"
volumes:
- ./server/data/server:/switchapp