forked from cfpb/consumerfinance.gov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (51 loc) · 1.11 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
version: '3.4'
volumes:
postgres_data:
services:
elasticsearch:
build:
context: ./
dockerfile: ./docker/elasticsearch/Dockerfile
ports:
- 127.0.0.1:9200:9200
- 127.0.0.1:9300:9300
environment:
discovery.type: single-node
ES_JAVA_OPTS: '-Xms512m -Xmx512m'
kibana:
image: docker.elastic.co/kibana/kibana:7.16.0
depends_on:
- elasticsearch
ports:
- 127.0.0.1:5601:5601
postgres:
image: postgres:13-alpine
user: postgres
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
POSTGRES_USER: cfpb
POSTGRES_PASSWORD: cfpb
POSTGRES_DB: cfgov
ports:
- 127.0.0.1:5432:5432
python:
image: cfgov_python:local
build:
context: .
dockerfile: Dockerfile
depends_on:
- elasticsearch
- postgres
stdin_open: true
tty: true
environment:
PGDATABASE: cfgov
PGUSER: cfpb
PGPASSWORD: cfpb
POSTGRES_USER: cfpb
PGHOST: postgres
PGPORT: 5432
ES_HOST: elasticsearch
SECRET_KEY: abcdefghijklmnopqrstuvwxyz