-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
75 lines (71 loc) · 1.75 KB
/
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
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
name: justedlev-msrv
services:
bridgewayhub:
container_name: bridgewayhub
image: justedlev/bridgewayhub:latest
build:
context: .
env_file:
- .env
ports:
- "8765:${SERVER_PORT}"
depends_on:
- sso
- service-registry
# Service discovery
service-registry:
container_name: service-registry
image: justedlev/simple-eureka-server:latest
environment:
SERVER_PORT: 8761
EUREKA_INSTANCE_HOSTNAME: service-registry
SPRING_SECURITY_USER_NAME: "{example}"
SPRING_SECURITY_USER_PASSWORD: "{example}"
ports:
- "8761:${SERVER_PORT}"
# SSO service (keycloak)
sso:
container_name: keycloak
image: quay.io/keycloak/keycloak:25.0.6
command: [ "start-dev" ]
environment:
KEYCLOAK_ADMIN: "{example}"
KEYCLOAK_ADMIN_PASSWORD: "{example}"
KC_HEALTH_ENABLED: true
KC_HOSTNAME: localhost
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://postgres:5432/{example}
KC_DB_USERNAME: "{example}"
KC_DB_PASSWORD: "{example}"
KC_DB_SCHEMA: keycloak
depends_on:
- postgres
ports:
- "9321:8080"
# Postgres DB
postgres:
container_name: postgres
image: postgres:16.4-alpine
environment:
POSTGRES_DB: "{example}"
POSTGRES_USER: "{example}"
POSTGRES_PASSWORD: "{example}"
volumes:
- db-data:/var/lib/postgresql/data
- /.db:/docker-entrypoint-initdb.d
ports:
- "5432:5432"
healthcheck:
test: [ "CMD", "pg_isready", "-U", "${POSTGRES_USER}", "-d" ]
interval: 15s
timeout: 10s
retries: 5
start_period: 12s
restart: unless-stopped
deploy:
resources:
limits:
cpus: "1"
memory: 250MB
volumes:
db-data: