This repository was archived by the owner on Jan 28, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yaml
More file actions
executable file
·71 lines (67 loc) · 2.18 KB
/
docker-compose.prod.yaml
File metadata and controls
executable file
·71 lines (67 loc) · 2.18 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: itestra-frontend-prod
ports:
- "${FRONTEND_PORT}:5173"
environment:
- VITE_API_ORIGIN=${BACKEND_ADDRESS}
- NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx
restart: unless-stopped
networks:
- app-network
postgres:
image: postgres
container_name: itestra-postgres-prod
# we exclude port mapping for security, just accessible via internal docker network
# ports:
# - "${POSTGRES_PORT:-5432}:5432"
environment:
POSTGRES_USER: ${DATABASE_USERNAME}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_DB: ${DATABASE_NAME}
volumes:
- ./backend/src/main/java/com/itestra/eep/sql:/docker-entrypoint-initdb.d:ro
restart: unless-stopped
networks:
- app-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DATABASE_USERNAME} -d ${DATABASE_NAME}"]
interval: 30s
timeout: 10s
retries: 5
backend:
build:
context: ./backend
dockerfile: Dockerfile
target: prod
container_name: itestra-backend-prod
ports:
- "${SERVER_PORT}:8000"
depends_on:
- postgres
environment:
SPRING_PROFILES_ACTIVE: ${SPRING_PROFILES_ACTIVE:-prod}
SPRING_DATASOURCE_URL: jdbc:postgresql://itestra-postgres-prod:5432/${DATABASE_NAME}
SPRING_DATASOURCE_USERNAME: ${DATABASE_USERNAME}
SPRING_DATASOURCE_PASSWORD: ${DATABASE_PASSWORD}
APPLICATION_SECURITY_JWT_SECRET_KEY: ${JWT_SERVER_KEY}
BACKEND_DOMAIN_ADDRESS: ${BACKEND_ADDRESS}
CLIENT_INSTANCE_ADDRESS: ${CLIENT_INSTANCE_ADDRESS}
GITLAB_INSTANCE_CLIENT_ID: ${GITLAB_INSTANCE_CLIENT_ID}
GITLAB_INSTANCE_CLIENT_SECRET: ${GITLAB_INSTANCE_CLIENT_SECRET}
CONSTRAINT_SOLVER_NUM_SEARCH_WORKERS: ${CONSTRAINT_SOLVER_SEARCH_WORKERS_COUNT}
CONSTRAINT_SOLVER_SOLVER_TIME_LIMIT: ${CONSTRAINT_SOLVER_DURATION_LIMIT}
restart: unless-stopped
networks:
- app-network
healthcheck:
test: ["CMD-SHELL", "curl -f ${BACKEND_ADDRESS}/actuator/health || exit 1"]
interval: 30s
timeout: 10s
retries: 5
networks:
app-network:
driver: bridge