12-factor Docker Swarm Stacks
Docker Meetup Grenoble
Docker 6th Birthday - Show & Tell
2019-03-26
💻 Proof-of-concept infrastructure
(single server)
🚀 Production-grade infrastructure
(cluster)
🤓 Very small team
Dokku
Orchestrator?
MYAPP_SECRET_KEY=secretvalue
MYAPP_SECRET_KEY_FILE=/run/secrets/MYAPP_SECRET_KEY
Convention over configuration
docker-compose.yml
.env
.secret
inv stack-deploy -s <stack>
inv stack-update -s <stack>
inv stack-rm -s <stack>
Stack
.env.example
.secret.example
pyinvoke
app1
app2
app1
app2
pyinvoke
Registry
https://github.com/swarm-pack
🎂