-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (42 loc) · 1.01 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
services:
db:
image: postgres:17
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: cert_service
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d cert_service"]
interval: 5s
timeout: 5s
retries: 10
backend:
build: ./backend
environment:
DATABASE_URL: postgres://postgres:password@db:5432/cert_service
SERVER_HOST: 0.0.0.0
SERVER_PORT: 3000
RUST_LOG: info,tower_http=debug,sqlx=warn
TLS_CERT_PATH: certs/cert.pem
TLS_KEY_PATH: certs/key.pem
ports:
- "3000:3000"
volumes:
- ./backend/certs:/app/certs
depends_on:
db:
condition: service_healthy
frontend:
build:
context: ./frontend
args:
NEXT_PUBLIC_API_URL: https://backend:3000
environment:
NEXT_PUBLIC_API_URL: https://backend:3000
NODE_TLS_REJECT_UNAUTHORIZED: "0"
ports:
- "3001:3001"
depends_on:
- backend