-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (28 loc) · 822 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (28 loc) · 822 Bytes
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
version: '3.8'
services:
api:
build:
context: .
dockerfile: Dockerfile
container_name: pos-api
ports:
- "8080:8080"
environment:
- APP_ENV=production
- APP_PORT=8080
- APP_NAME=GoPOS API
- APP_VERSION=2.0.0
- JWT_SECRET=${JWT_SECRET:-your-super-secret-jwt-key-change-in-production}
- JWT_EXPIRY_HOURS=24
- JWT_REFRESH_EXPIRY_HOURS=168
- DB_CONN=${DB_CONN:-}
- RATE_LIMIT_RPS=100
- RATE_LIMIT_BURST=200
- CORS_ALLOWED_ORIGINS=${CORS_ALLOWED_ORIGINS:-http://localhost:3000,http://localhost:5173}
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s