Better examples for Swarm
This commit is contained in:
parent
7dc683b254
commit
aa5f8055f5
6 changed files with 208 additions and 0 deletions
28
examples/swarm/portainer.yml
Normal file
28
examples/swarm/portainer.yml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# To install:
|
||||
# docker stack deploy -c portainer.yml portainer
|
||||
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
portainer:
|
||||
image: portainer/portainer-ce:latest
|
||||
volumes:
|
||||
- portainer_data:/data portainer
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
deploy:
|
||||
replicas: 1
|
||||
labels:
|
||||
# easyhaproxy.http.redirect_ssl: true
|
||||
# easyhaproxy.http.letsencrypt: true
|
||||
easyhaproxy.http.host: portainer.local
|
||||
easyhaproxy.http.port: 80
|
||||
easyhaproxy.http.localport: 9000
|
||||
|
||||
volumes:
|
||||
certs_letsencrypt:
|
||||
external: true
|
||||
# certs_haproxy:
|
||||
# external: true
|
||||
portainer_data:
|
||||
# external: true
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue