generated from digitalservicebund/java-application-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
133 lines (128 loc) · 3.32 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
services:
opensearch:
image: opensearchproject/opensearch:1.3.19
container_name: opensearch
restart: unless-stopped
ports:
- "9200:9200"
- "9600:9600"
expose:
- 9200
- 9600
healthcheck:
test: curl --silent --fail http://localhost:9200/_cluster/health | grep docker-cluster || exit 1
interval: 5s
retries: 20
start_period: 10s
timeout: 3s
environment:
- node.name=opensearch-node1
- discovery.type=single-node
- "DISABLE_SECURITY_PLUGIN=true"
- "OPENSEARCH_JAVA_OPTS=-Xms4096m -Xmx4096m"
networks:
- ris-portal
volumes:
- ./backend/src/main/resources/openSearch/mounted/:/usr/share/opensearch/config/mounted/
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:1.3.19
restart: unless-stopped
ports:
- "5601:5601"
expose:
- 5601
environment:
OPENSEARCH_HOSTS: '["http://opensearch:9200"]'
DISABLE_SECURITY_DASHBOARDS_PLUGIN: "true"
depends_on:
- opensearch
networks:
- ris-portal
keycloak:
image: quay.io/keycloak/keycloak:26.0
command: ["start-dev", "--import-realm"]
container_name: keycloak
restart: unless-stopped
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: test
KC_HEALTH_ENABLED: true
KC_METRICS_ENABLED: true
ports:
- "8443:8080"
expose:
- 8080
volumes:
- ./local/keycloak/realm.json:/opt/keycloak/data/import/realm.json:ro
networks:
- ris-portal
# backend:
# build: ./backend
# container_name: backend
# restart: unless-stopped
# volumes:
# - ./backend:/app/backend
# environment:
# - POSTGRES_CASELAW_HOST=postgres14-caselaw
# - POSTGRES_NORMS_HOST=postgres14-norms
# - POSTGRES_NORMS_PORT=5432
# - OPENSEARCH_HOST=opensearch
# depends_on:
# postgres14-norms:
# condition: service_healthy
# postgres14-caselaw:
# condition: service_healthy
# opensearch:
# condition: service_healthy
# healthcheck:
# test: curl --silent --fail http://localhost:8090/actuator/health | grep UP || exit 1
# interval: 10s
# retries: 20
# start_period: 60s
# timeout: 3s
# ports:
# - "8090:8090"
# networks:
# - ris-portal
#
# frontend-public:
# build:
# context: ./frontend
# dockerfile: public/local.Dockerfile
# container_name: frontend-public
# depends_on:
# backend:
# condition: service_healthy
# volumes:
# - ./frontend/:/app/
# - node_modules_public:/app/node_modules # https://stackoverflow.com/a/78474868/3357175
# env_file:
# - ./frontend/public/.env.local
# ports:
# - "3001:3001"
# networks:
# - ris-portal
#
# frontend-internal:
# build:
# context: ./frontend
# dockerfile: internal/local.Dockerfile
# container_name: frontend-internal
# depends_on:
# backend:
# condition: service_healthy
# volumes:
# - ./frontend/:/app/
# - node_modules_internal:/app/node_modules # https://stackoverflow.com/a/78474868/3357175
# env_file:
# - ./frontend/internal/.env.local
# ports:
# - "3000:3000"
# networks:
# - ris-portal
networks:
ris-portal:
driver: bridge
volumes:
node_modules_public: {}
node_modules_internal: {}