-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose-debug.yml
More file actions
73 lines (66 loc) · 2.23 KB
/
docker-compose-debug.yml
File metadata and controls
73 lines (66 loc) · 2.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3.1'
volumes:
db_data:
services:
# Node server
frontend:
depends_on:
- backend
build:
context: ./frontend
dockerfile: ./Dockerfile.frontend
ports:
- ${FRONTEND_EXPOSE}:3000
environment:
REACT_APP_PROXY: http://backend:8080
# Spring App + Java
backend:
depends_on:
- db
build:
context: .
dockerfile: ./src/main/resources/Dockerfile.backend.debug
environment:
- SPRING_PROFILES_ACTIVE=container
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_TENANT_PUBLIC_USER=${DB_TENANT_PUBLIC_USER}
- DB_TENANT_PUBLIC_PASSWORD=${DB_TENANT_PUBLIC_PASSWORD}
- DB_TENANT_A_USER=${DB_TENANT_A_USER}
- DB_TENANT_A_PASSWORD=${DB_TENANT_A_PASSWORD}
- DB_TENANT_B_USER=${DB_TENANT_B_USER}
- DB_TENANT_B_PASSWORD=${DB_TENANT_B_PASSWORD}
- MS3_SEED_DOCTORS_ENABLED=true # Rimuovi per il run senza popolazione di 100 utenti
- GEMMA_API_KEY=${GEMMA_API_KEY}
volumes:
- ./doctors_seed.json:/app/doctors_seed.json:ro
expose:
- 8080
- 5005
ports:
- "5005:5005"
# postgres
db:
build:
context: ./src/main/resources/db
dockerfile: Dockerfile.db
volumes:
- db_data:/var/lib/postgresql/data
- ./src/main/resources/db/init-scripts:/docker-entrypoint-initdb.d
environment:
# NOTE: credentials must mirror application-container.properties so the
# SchemasInitializer can apply schema updates (including 2FA columns) for
# each tenant. Override them via .env or your shell before docker-compose up.
# When database structures change, prune the db_data volume (e.g. `docker-compose down -v`)
# so init-users.sh and the initializer rerun on a clean Postgres instance.
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: ${DB_NAME}
DB_TENANT_PUBLIC_USER: ${DB_TENANT_PUBLIC_USER}
DB_TENANT_PUBLIC_PASSWORD: ${DB_TENANT_PUBLIC_PASSWORD}
DB_TENANT_A_USER: ${DB_TENANT_A_USER}
DB_TENANT_A_PASSWORD: ${DB_TENANT_A_PASSWORD}
DB_TENANT_B_USER: ${DB_TENANT_B_USER}
DB_TENANT_B_PASSWORD: ${DB_TENANT_B_PASSWORD}
PGDATA: /var/lib/postgresql/data