-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathcompose.yml
More file actions
52 lines (48 loc) · 1.23 KB
/
compose.yml
File metadata and controls
52 lines (48 loc) · 1.23 KB
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
services:
server:
image: ghcr.io/aet-devops25/w10-template/server:latest
build:
context: ./server
dockerfile: Dockerfile
environment:
- SPRING_PROFILES_ACTIVE=docker
- DATABASE_URL=jdbc:postgresql://database:5432/mensa
- LLM_SERVICE_URL=http://llm:5000
ports:
- "8080:8080"
restart: unless-stopped
database:
image: postgres:17
ports:
- "5432:5432"
environment:
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-supersecret}
- POSTGRES_DB=${POSTGRES_DB:-mensa}
volumes:
- db_data:/var/lib/postgresql/data
restart: unless-stopped
client:
image: ghcr.io/aet-devops25/w10-template/client:latest
build:
context: ./client
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- PUBLIC_API_URL=${PUBLIC_API_URL:-http://localhost:8080/api}
depends_on:
- server
restart: unless-stopped
llm:
image: ghcr.io/aet-devops25/w10-template/llm:latest
build:
context: ./llm
dockerfile: Dockerfile
environment:
- CHAIR_API_KEY=${CHAIR_API_KEY:-your_api_key_here}
ports:
- "5000:5000"
restart: unless-stopped
volumes:
db_data: