-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdocker-compose.yml
47 lines (46 loc) · 989 Bytes
/
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
# For usage, see https://github.com/Safecast/safecastapi/wiki/Dev:-Setup-on-Linux
version: "3"
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
DATABASE_HOST: 'postgresql'
ELASTICSEARCH_URL: 'http://elasticsearch:9200'
volumes:
- .:/src
depends_on:
- postgresql
- elasticsearch
elasticsearch:
build:
context: .
dockerfile: Dockerfile.elasticsearch
environment:
discovery.type: single-node
ports:
- "9200:9200"
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
postgresql:
build:
context: .
dockerfile: Dockerfile.postgres
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
aws-cli:
build:
context: .
dockerfile: Dockerfile.aws-cli
volumes:
- .:/aws
volumes:
elasticsearch-data:
driver: local
postgres-data:
driver: local