-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
56 lines (53 loc) · 1.19 KB
/
docker-compose.dev.yml
File metadata and controls
56 lines (53 loc) · 1.19 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
services:
ui:
build:
context: ../cms-ui
dockerfile: Dockerfile.dev
ports:
- "5173:5173"
environment:
- API_URL=http://api:3000
volumes:
- ../cms-ui:/app
- /app/node_modules
depends_on:
- api
api:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
environment:
- DATABASE_URL=
- JWT_SECRET=dev-secret-key-not-for-production
- JWT_EXPIRATION_HOURS=24
- REFRESH_TOKEN_EXPIRATION_DAYS=7
- SERVER_HOST=0.0.0.0
- SERVER_PORT=3000
- CORS_ORIGINS=http://localhost:5173,http://localhost:3000
- RUST_LOG=cms_api=debug,tower_http=debug
volumes:
- .:/app
- cargo_cache:/usr/local/cargo/registry
- target_cache:/app/target
depends_on:
db:
condition: service_healthy
db:
image: postgres:16-alpine
ports:
- "5432:5432"
environment:
- POSTGRES_DB=cms_api
volumes:
- postgres_data_dev:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data_dev:
cargo_cache:
target_cache: