-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (58 loc) · 1.29 KB
/
docker-compose.yml
File metadata and controls
62 lines (58 loc) · 1.29 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
services:
db:
image: postgres:15-alpine
environment:
POSTGRES_DB: hms
POSTGRES_USER: hms
POSTGRES_PASSWORD: hms_password
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U hms -d hms"]
interval: 10s
timeout: 5s
retries: 5
backend:
build: ./backend
env_file:
- ./backend/.env
environment:
DATABASE_URL: postgresql://hms:hms_password@db:5432/hms
depends_on:
db:
condition: service_healthy
ports:
- "8000:8000"
frontend:
build:
context: ./public-frontend
args:
NEXT_PUBLIC_API_BASE_URL: http://backend:8000
NEXT_PUBLIC_PATIENT_PORTAL_URL: /patient-portal
PORT: 3000
env_file:
- ./public-frontend/.env
environment:
NODE_ENV: production
depends_on:
backend:
condition: service_started
ports:
- "3000:3000"
internal-frontend:
build:
context: ./internal-frontend
args:
VITE_API_BASE_URL: http://localhost:8000
VITE_APP_PORT: 5173
env_file:
- ./internal-frontend/.env
depends_on:
backend:
condition: service_started
ports:
- "5173:80"
volumes:
postgres-data: