-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (57 loc) · 1.25 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
version: '3.8'
services:
db:
image: postgres:15
restart: unless-stopped
environment:
- POSTGRES_USER=db
- POSTGRES_PASSWORD=db
- POSTGRES_DB=db
volumes:
- "./docker/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d"
ports:
- '5432:5432'
deploy:
resources:
limits:
memory: 256M
keycloak:
image: quay.io/keycloak/keycloak:21.0
restart: unless-stopped
environment:
- KC_DB=postgres
- KC_DB_URL=jdbc:postgresql://db:5432/db
- KC_DB_USERNAME=db
- KC_DB_PASSWORD=db
ports:
- '8080:8080'
- '8443:8443'
depends_on:
- db
deploy:
resources:
limits:
memory: 512M
command:
- start-dev
app:
image: bareplay:1.0-SNAPSHOT
restart: unless-stopped
environment:
- APPLICATIONNAME_DB_DEFAULT_URL=jdbc:postgresql://db:5432/db
- APPLICATIONNAME_DB_DEFAULT_USERNAME=db
- APPLICATIONNAME_DB_DEFAULT_PASSWORD=db
ports:
- '9000:9000'
depends_on:
- keycloak
- db
deploy:
resources:
limits:
memory: 256M
command:
- -J-XX:MaxRAM=150m
- -J-XX:+UseSerialGC
- -J-XX:+TieredCompilation
- -J-XX:TieredStopAtLevel=1