diff --git a/docker-compose-guide.yml b/docker-compose-guide.yml new file mode 100644 index 0000000..e4f27d3 --- /dev/null +++ b/docker-compose-guide.yml @@ -0,0 +1,11 @@ +# Docker Compose GUIDE for this Server +# 1. No comments in the rest of the file. This top block is the only exception. +# 2. All containers that are part of the same service must have the service name as a prefix. +# Example: headscale, headscale-database, headscale-ui, etc. +# 3. DO NOT use Docker volumes. Use only bind mounts with relative paths like .//folder +# Example: ./headscale/data:/data +# 4. To expose services over HTTP/HTTPS, you must use Traefik. +# 5. Use env_file for environment variables. +# - File must be stored in the service folder, e.g., ./headscale/.env.headscale +# - Containers related to the same service must use the same .env file +# 6. These rules must also be followed by AI-generated configurations and edits. \ No newline at end of file