-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
62 lines (58 loc) · 1.61 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
services:
frontend:
build:
context: ./motivaa-frontend/
dockerfile: ./local-run/Dockerfile
ports:
- "3000:3000"
- "3001:3001"
environment:
- BACKEND_URL=http://backend:8093/v3/api-docs
volumes:
- ./motivaa-frontend/src:/app/src
- ./motivaa-frontend/public:/app/public
backend:
build:
context: ./motivaa-backend/
dockerfile: ./local-run/Dockerfile
ports:
- "8093:8093"
depends_on:
- elasticsearch
- motivaa-keycloak
environment:
- ELASTICSEARCH=http://elasticsearch:9200
# mysql:
# image: mysql:latest
# environment:
# MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: Motivaa
# ports:
# - "3306:3306"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.3
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms512m -Xmx512m
- xpack.security.enabled=false ## disable SSL, auto https -enforce
ports:
- "9200:9200"
motivaa-keycloak:
image: quay.io/keycloak/keycloak:24.0.3
container_name: motivaa-keycloak
volumes:
- keycloak_data:/opt/keycloak/themes
- ./keycloak-themes/themes:/opt/keycloak/themes
- ./keycloak-themes/providers:/opt/keycloak/providers
- ./import:/opt/keycloak/data/import
- ./keycloak-db/h2:/opt/keycloak/data/h2
- ./keycloak-db/import:/opt/keycloak/data/import
command: ["start-dev", "--import-realm", "--verbose"]
ports:
- "8080:8080"
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: hadmin
REALM_NAME: Motivaa
volumes:
keycloak_data: