Deployment #
The following is an example stack which you can use to get started. It uses our Caddy distribution which we maintain on our quantum-caddy Github repository.
Please adjust the CADDY_EMAIL before pasting/deploying the stack. The email address is used for Let’s Encrypt and automatic TLS/SSL.version: "3.8"
services:
proxy:
image: r.planetary-quantum.com/quantum-public/caddy:v2.11.7-pq.0
ports:
- target: 80
published: 80
protocol: tcp
mode: host
- target: 443
published: 443
protocol: tcp
mode: host
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- caddy-data:/data
environment:
- "CADDY_EMAIL=name@example.org"
deploy:
mode: global
placement:
constraints:
- node.role == manager
networks:
- public
volumes:
caddy-data:
networks:
public:
external: true
Updates: You can deploy this stack via quantum-cli which makes this stack updatable just like any other workload you deploy to Planetary Quantum! We recommend Dependabot or renovate to keep your stack updated.