-
Notifications
You must be signed in to change notification settings - Fork 129
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.45 KB
/
docker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.45 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
59
60
volumes:
postgres_data:
opensearch_data:
services:
opensearch:
image: opensearchproject/opensearch:2.19.4
ports:
- 127.0.0.1:9200:9200
- 127.0.0.1:9300:9300
volumes:
- opensearch_data:/usr/share/opensearch/data/
environment:
discovery.type: single-node
OPENSEARCH_JAVA_OPTS: '-Xms512m -Xmx512m'
# Disables the need for an admin password and TLS.
# We only ever run this locally in development.
DISABLE_SECURITY_PLUGIN: true
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:2.19.4
depends_on:
- opensearch
ports:
- 127.0.0.1:5601:5601
environment:
OPENSEARCH_HOSTS: '["http://opensearch:9200"]'
DISABLE_SECURITY_DASHBOARDS_PLUGIN: true
postgres:
image: postgres:17-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
target: dev
args:
REQUIREMENTS: local.txt
depends_on:
- opensearch
- postgres
stdin_open: true
tty: true
environment:
DATABASE_URL: postgres://cfpb:cfpb@postgres/cfgov
ES_HOST: opensearch
SECRET_KEY: abcdefghijklmnopqrstuvwxyz
COMPLAINT_ES_INDEX: complaint-public