-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.02 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
services:
ui:
build:
context: ../cms-ui
dockerfile: Dockerfile
ports:
- "8080:80"
depends_on:
- api
restart: unless-stopped
api:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- DATABASE_URL=
- JWT_SECRET=${JWT_SECRET:-change-this-secret-in-production}
- JWT_EXPIRATION_HOURS=24
- REFRESH_TOKEN_EXPIRATION_DAYS=7
- SERVER_HOST=0.0.0.0
- SERVER_PORT=3000
- CORS_ORIGINS=http://localhost:8080,http://localhost:3000
- RUST_LOG=cms_api=debug,tower_http=debug
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:16-alpine
ports:
- "5432:5432"
environment:
- POSTGRES_DB=cms_api
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
postgres_data: