add required networks

This commit is contained in:
2025-03-09 16:14:12 +01:00
parent 1d3f18fbb8
commit 4242612c8f

View File

@@ -1,6 +1,15 @@
# Basic Caddy docker-compose config
* can be run on single node setup or in swarm
* recommend to set `replicas` on 2 or more if deploy in swarm
- can be run on single node setup or in swarm
- recommend to set `replicas` on 2 or more if deploy in swarm
- default setup requires 2 external networks
- Services with exposed Ports should be in frontend network
- Services only accessable for caddy should be in backend network
- on single host:
- docker network create frontend
- docker network create backend
- on swarm:
- docker network create --scope=swarm --attachable -d overlay frontend
- docker network create --scope=swarm --attachable -d overlay backend
## howto
### single node