-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yaml
43 lines (39 loc) · 1.47 KB
/
docker-compose.yaml
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
version: "3"
services:
postgres:
image: "postgres:15.2@sha256:4434eed0bfecb39db77c47e0b026242d97ce453df3b70254c381fe0bcb83497d"
command: "postgres -c max_connections=200 -c log_statement=all -c log_destination=stderr"
environment:
- "POSTGRES_USER=oph"
- "POSTGRES_PASSWORD=oph"
- "TZ=Europe/Helsinki"
ports:
- "5432:5432"
volumes:
- "./postgresql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d"
opensearch:
build: "./opensearch"
environment:
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.type=single-node"
- "plugins.security.disabled=true"
ports:
- "9200:9200"
volumes:
- "./opensearch/opensearch-docker.yml:/usr/share/opensearch/config/opensearch.yml"
dynamodb:
image: "amazon/dynamodb-local:2.5.2@sha256:d7ebddeb60fa418bcda218a6c6a402a58441b2a20d54c9cb1d85fd5194341753"
ports:
- "8000:8000"
localstack:
container_name: koski-localstack
image: localstack/localstack:s3-latest@sha256:c43ea609e7957594c47adcce52359425b427feceb7a4b3283eebd64fb949e353
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559" # external services port range
environment:
# LocalStack configuration: https://docs.localstack.cloud/references/configuration/
- DEBUG=${DEBUG:-0}
volumes:
- "${LOCALSTACK_VOLUME_DIR:-./localstack-volume}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"