This section documents how Docker is used on the server, including compose structure, deployment workflow, and container management.
- All services run in Docker containers
- Compose files define services and are grouped by function
- Persistent data is stored outside containers
- Containers communicate over Docker networks
/srv/stacks → Docker Compose files
/srv/docker → persistent data and configs
- Never store important data inside containers
- Always use bind mounts for persistent data
- Keep compose files separate from data
- Use container names for internal communication