-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
83 lines (75 loc) · 1.87 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
services:
server:
build:
context: ./server
dockerfile: Dockerfile
container_name: prompt-core-server
depends_on:
db:
condition: service_healthy
ports:
- "8080:8080"
environment:
- DB_USER=prompt-postgres
- DB_PASSWORD=prompt-postgres
- DB_HOST=db
- DB_PORT=5432
- DB_NAME=prompt
- SSL_MODE=disable
- SERVER_ADDRESS=0.0.0.0:8080
core:
build:
context: ./clients/core
dockerfile: Dockerfile
container_name: prompt-client-core
ports:
- "3000:80"
depends_on:
- clients-base
template_component:
build:
context: ./clients/template_component
dockerfile: Dockerfile
container_name: prompt-client-template-component
ports:
- "3001:80"
depends_on:
- clients-base
clients-base:
build:
context: ./clients
dockerfile: Dockerfile
image: base:latest
db:
image: 'postgres:15.2-alpine'
container_name: prompt-core-db
environment:
- POSTGRES_USER=prompt-postgres
- POSTGRES_PASSWORD=prompt-postgres
- POSTGRES_DB=prompt
- TZ=Europe/Berlin
healthcheck:
test: ["CMD-SHELL", "pg_isready -d prompt -U prompt-postgres"]
interval: 5s
timeout: 5s
retries: 5
ports:
- "5432:5432"
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"
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"