-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yaml
69 lines (66 loc) · 1.68 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
services:
application-server:
image: hephaestus-application-server
ports:
- '8080'
environment:
- SPRING_PROFILES_ACTIVE=prod
- DATABASE_URL=jdbc:postgresql://postgres:5432/hephaestus
- DATABASE_USERNAME=root
- DATABASE_PASSWORD=root
- SECURITY_USER_NAME=${SECURITY_USER_NAME:-admin}
- SECURITY_USER_PASSWORD=${SECURITY_USER_NAME:-admin_password}
- INTELLIGENCE_SERVICE_URL=http://intelligence-service:5000
depends_on:
- postgres
networks:
- app-network
healthcheck:
test: "wget -qO- http://localhost:8080/actuator/health || exit 1"
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
intelligence-service:
build: server/intelligence-service
environment:
# Either OPENAI_API_KEY or AZURE_OPENAI_API_KEY must be set
- OPENAI_API_KEY
- AZURE_OPENAI_API_KEY
- AZURE_OPENAI_ENDPOINT
- AZURE_OPENAI_API_VERSION
networks:
- app-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 3s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
postgres:
image: 'postgres:16'
environment:
- POSTGRES_DB=hephaestus
- POSTGRES_PASSWORD=root
- POSTGRES_USER=root
ports:
- '5432'
networks:
app-network:
aliases:
- postgres
volumes:
- postgresql-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
networks:
app-network:
driver: bridge`