-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
61 lines (57 loc) · 1.56 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
services:
server:
image: ghcr.io/ls1intum/prompt/prompt-server:latest
build:
context: ./server
container_name: prompt-server
depends_on:
db:
condition: service_healthy
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/prompt
- SPRING_DATASOURCE_USERNAME=prompt-postgres
- SPRING_DATASOURCE_PASSWORD=prompt-postgres
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
ports:
- "8080:8080"
db:
image: 'postgres:15.2-alpine'
container_name: prompt-db
environment:
- POSTGRES_USER=prompt-postgres
- POSTGRES_PASSWORD=prompt-postgres
- POSTGRES_DB=prompt
healthcheck:
test: ["CMD-SHELL", "pg_isready -d prompt -U prompt-postgres"]
interval: 5s
timeout: 5s
retries: 5
ports:
- "5432:5432"
client:
image: ghcr.io/ls1intum/prompt/prompt-client:latest
build:
context: ./client
container_name: prompt-client
depends_on:
- server
ports:
- "80:80"
postfix:
image: ghcr.io/ls1admin/postfix:latest
container_name: prompt-postfix
restart: unless-stopped
volumes:
- ./postfix-config:/config # See https://github.com/ls1admin/postfix-container-tum-mailrelay/tree/main for details
hostname: prompt.ase.cit.tum.de
ports:
- "25:25"
keycloak:
image: quay.io/keycloak/keycloak:20.0
container_name: prompt-keycloak
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
entrypoint: /opt/keycloak/bin/kc.sh start-dev
ports:
- "8081:8080"