forked from redlib-org/redlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
37 lines (34 loc) · 992 Bytes
/
compose.dev.yaml
File metadata and controls
37 lines (34 loc) · 992 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
30
31
32
33
34
35
36
37
# docker compose -f compose.dev.yaml up
# Development setup - source mounted read-only, build cache in Docker volumes
services:
redlib:
build:
context: .
dockerfile: Dockerfile.dev
container_name: "redlib"
ports:
- 8080:8080
volumes:
# Mount source code as read-only - code changes trigger rebuild
- ./src:/redlib/src:ro
- ./templates:/redlib/templates:ro
- ./static:/redlib/static:ro
- ./Cargo.toml:/redlib/Cargo.toml:ro
- ./Cargo.lock:/redlib/Cargo.lock:ro
- ./build.rs:/redlib/build.rs:ro
# Build artifacts stay in Docker volumes (not on your disk)
- redlib-target:/redlib/target
- redlib-cargo:/usr/local/cargo
environment:
- RUST_LOG=debug
networks:
- redlib
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "--tries=1", "http://localhost:8080/settings"]
interval: 5m
timeout: 3s
volumes:
redlib-target:
redlib-cargo:
networks:
redlib: