-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (74 loc) · 2.05 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# SPDX-FileCopyrightText: NOI Techpark <digital@noi.bz.it>
#
# SPDX-License-Identifier: CC0-1.0
version: "3.4"
services:
app:
build:
context: .
dockerfile: infrastructure/docker/Dockerfile
target: dev
volumes:
- ./:/code
working_dir: /code
command: ["mvn spring-boot:run"]
depends_on:
- postgres
- elasticsearch
tty: true
environment:
SERVER_PORT: ${SERVER_PORT}
POSTGRES_URL: ${POSTGRES_URL}
POSTGRES_USERNAME: ${POSTGRES_USERNAME}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ELASTICSEARCH_SCHEME: ${ELASTICSEARCH_SCHEME}
ELASTICSEARCH_HOST: ${ELASTICSEARCH_HOST}
ELASTICSEARCH_PORT: ${ELASTICSEARCH_PORT}
ELASTICSEARCH_USERNAME: ${ELASTICSEARCH_USERNAME}
ELASTICSEARCH_PASSWORD: ${ELASTICSEARCH_PASSWORD}
ELASTICSEARCH_NAMESPACE_PREFIX: ${ELASTICSEARCH_NAMESPACE_PREFIX}
S3_ACCESS_KEY: ${S3_ACCESS_KEY}
S3_SECRET_KEY: ${S3_SECRET_KEY}
S3_BUCKET_NAME: ${S3_BUCKET_NAME}
S3_REGION: ${S3_REGION}
SECURITY_ALLOWED_ORIGINS: ${SECURITY_ALLOWED_ORIGINS}
KEYCLOAK_URL: ${KEYCLOAK_URL}
KEYCLOAK_REALM: ${KEYCLOAK_REALM}
KEYCLOAK_CLIENT_ID: ${KEYCLOAK_CLIENT_ID}
KEYCLOAK_CLIENT_SECRET: ${KEYCLOAK_CLIENT_SECRET}
LOG_APPLICATION_NAME: ${LOG_APPLICATION_NAME}
KEYCLOAK_SSL_REQUIRED: ${KEYCLOAK_SSL_REQUIRED}
ports:
- "${SERVER_PORT}:${SERVER_PORT}"
networks:
- internal
- authentication
postgres:
image: postgres:11
environment:
POSTGRES_DB: innovation-scoreboard
POSTGRES_USERNAME: innovation-scoreboard
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
networks:
- internal
elasticsearch:
image: elasticsearch:7.2.0
environment:
discovery.type: single-node
ports:
- "9200:9200"
networks:
- internal
kibana:
image: docker.elastic.co/kibana/kibana:7.2.0
ports:
- "5601:5601"
networks:
- internal
networks:
authentication:
external: true
internal:
external: false