-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
77 lines (72 loc) · 1.95 KB
/
docker-compose.local.yml
File metadata and controls
77 lines (72 loc) · 1.95 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
74
75
76
77
name: pmd
services:
mongo:
image: mongo:7
container_name: pmd-mongo
restart: unless-stopped
ports:
- "${PMD_MONGO_PORT:-27017}:27017"
volumes:
- mongo_data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.runCommand({ ping: 1 })"]
interval: 10s
timeout: 5s
retries: 5
backend:
image: pmd-backend-local
build:
context: ./backend/pmd-backend
profiles: ["reviewer"]
container_name: pmd-backend
restart: unless-stopped
ports:
- "${PMD_BACKEND_PORT:-8080}:8080"
environment:
SPRING_DATA_MONGODB_URI: mongodb://mongo:27017/pmd
SPRING_MAIL_HOST: mailhog
SPRING_MAIL_PORT: 1025
PMD_SEED_DEMO: "true"
SPRING_PROFILES_ACTIVE: docker
PMD_JWT_SECRET: "pmd-dev-secret-32-bytes-minimum-rotate-in-prod-2026-01-28"
PMD_JWT_EXPIRATIONSECONDS: 86400
PMD_AUTH_SESSION_COOKIE_SECURE: "false"
depends_on:
mongo:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost:8080/actuator/health || exit 1"]
interval: 10s
timeout: 5s
retries: 6
frontend:
image: pmd-frontend-local
build:
context: ./frontend/pmd-frontend
profiles: ["reviewer"]
container_name: pmd-frontend
restart: unless-stopped
ports:
- "${PMD_FRONTEND_PORT:-5173}:80"
depends_on:
backend:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget -q -O /dev/null http://127.0.0.1/ || exit 1"]
interval: 10s
timeout: 5s
retries: 6
mailhog:
image: mailhog/mailhog:latest
container_name: pmd-mailhog
restart: unless-stopped
ports:
- "${PMD_SMTP_PORT:-1025}:1025"
- "${PMD_MAILHOG_UI_PORT:-8025}:8025"
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:8025/ >/dev/null 2>&1 || exit 1"]
interval: 10s
timeout: 5s
retries: 6
volumes:
mongo_data: