-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (62 loc) · 1.65 KB
/
Copy pathdocker-compose.yml
File metadata and controls
65 lines (62 loc) · 1.65 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
services:
postgres:
image: postgres:16-alpine
container_name: secure-auth-postgres
restart: unless-stopped
environment:
POSTGRES_DB: secure_auth
POSTGRES_USER: secure_auth
POSTGRES_PASSWORD: secure_auth
ports:
- "15432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U secure_auth -d secure_auth"]
interval: 10s
timeout: 5s
retries: 10
api:
build:
context: .
dockerfile: apps/api/Dockerfile
container_name: secure-auth-api
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
- APP_ENV=development
- API_ADDR=:18080
- APP_ORIGIN=http://localhost:15173,http://127.0.0.1:15173
- DATABASE_URL=postgres://secure_auth:secure_auth@postgres:5432/secure_auth?sslmode=disable
- SESSION_COOKIE_NAME=sa_session
- SESSION_TTL_HOURS=168
- RESET_TOKEN_TTL_MINUTES=30
- RATE_LIMIT_RPS=0.5
- RATE_LIMIT_BURST=8
- AUTH_RATE_LIMIT_RPS=0.2
- AUTH_RATE_LIMIT_BURST=5
- RECOVERY_RATE_LIMIT_RPS=0.1
- RECOVERY_RATE_LIMIT_BURST=3
- CLEANUP_INTERVAL_MINUTES=15
- HSTS_MAX_AGE_SECONDS=31536000
- TRUSTED_PROXY_CIDRS=172.16.0.0/12
- BOOTSTRAP_ADMIN_EMAIL=
- ENABLE_RESET_PREVIEW=false
ports:
- "18080:18080"
web:
build:
context: .
dockerfile: apps/web/Dockerfile
args:
- VITE_API_BASE_URL=/api/v1
container_name: secure-auth-web
restart: unless-stopped
depends_on:
- api
ports:
- "15173:80"
volumes:
postgres-data: