-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (53 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
56 lines (53 loc) · 1.52 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
services:
db:
image: postgres:16-alpine
restart: unless-stopped
ports:
- "5432:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER:-servpulse}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
POSTGRES_DB: ${POSTGRES_DB:-servpulse}
volumes:
- pgdata:/var/lib/postgresql/data
- ./database/init.sql:/docker-entrypoint-initdb.d/init.sql
backend:
build:
context: ./backend
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "${EXPRESS_PORT:-3000}:3000"
environment:
POSTGRES_CONNECTION_STRING: postgresql://${POSTGRES_USER:-servpulse}:${POSTGRES_PASSWORD:-changeme}@db:5432/${POSTGRES_DB:-servpulse}
EXPRESS_PORT: 3000
JWT_SECRET: ${JWT_SECRET:-servpulse-dev-secret}
APP_URL: ${APP_URL:-http://localhost:8080}
SMTP_HOST: ${SMTP_HOST:-localhost}
SMTP_PORT: ${SMTP_PORT:-587}
SMTP_SECURE: ${SMTP_SECURE:-false}
SMTP_USER: ${SMTP_USER:-}
SMTP_PASS: ${SMTP_PASS:-}
SMTP_FROM: ${SMTP_FROM:-ServPulse <noreply@servpulse.local>}
HEALTH_CHECK_INTERVAL: ${HEALTH_CHECK_INTERVAL:-60000}
depends_on:
- db
volumes:
- ./backend:/app
- /app/node_modules
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "8080:8080"
environment:
VITE_API_URL: http://localhost:${EXPRESS_PORT:-3000}/api
depends_on:
- backend
volumes:
- ./frontend:/app
- /app/node_modules
volumes:
pgdata: