/
docker-compose-postgresql-aws.yml
42 lines (39 loc) · 1.38 KB
/
docker-compose-postgresql-aws.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
version: '3.7'
services:
entrada:
image: sidnlabs/entrada:<tag>
restart: always
ports:
- 8080:8080
environment:
# ENTRADA options
- ENTRADA_NAMESERVERS=
# PostgreSQL config options, make sure the the database is created before
# starting the container
# replace <host_or_ip> with the actual host of ip, do not use localhost
- SPRING_DATASOURCE_HIKARI_JDBCURL=jdbc:postgresql://<host_or_ip>:5432/entrada
- SPRING_DATASOURCE_HIKARI_USERNAME=
- SPRING_DATASOURCE_HIKARI_PASSWORD=
# AWS config options for S3 and Athena
- AWS_ACCESS_KEY_ID=
- AWS_SECRET_KEY=
# configure bucket name, entrada will create and configure bucket
- AWS_BUCKET=entrada-data-myorg
# override output location with an s3 location
- ENTRADA_LOCATION_OUTPUT=s3://entrada-data-myorg/database/
# The following options do NOT need to be changed
# change the volume mappings below, in the "volumes:" section
- ENTRADA_ENGINE=aws
- JAVA_OPTS=-Xmx4g -Xms4g
# Map internal container path to a path on the host
# format <host-path>:<container:path>
# ENTRADA will write to /entrada/... in the container
volumes:
- ./:/entrada/data/
dns:
- 8.8.8.8
#Limit container logging
logging:
options:
max-size: "10m"
max-file: "3"