Switched to yml vars files
parent
51a82d1df2
commit
b972819678
|
@ -0,0 +1,3 @@
|
|||
[defaults]
|
||||
vault_password_file = .ansible-password
|
||||
inventory = rb.hosts.ini
|
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
ansible_ssh_user: debian
|
||||
ansible_ssh_port: 2222
|
||||
ansible_become_pass: !vault |
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
32636639346333343636656237353437333639376233613234663535306533306131323764633664
|
||||
3735373364666336653137323233303135303961303462320a383635643865666330373438616535
|
||||
65303939656336613730326363643133633834393066326163353038613230343039626666303261
|
||||
3231376239656431300a383866636562613636383339396132316237323664383964383838653836
|
||||
6432
|
||||
|
||||
portainer:
|
||||
version: 2.11.0
|
||||
domain: dock.rustybever.be
|
||||
|
||||
traefik:
|
||||
version: 2.5.5
|
||||
acme_email: roosensjef@gmail.com
|
|
@ -3,7 +3,7 @@ version: '3.2'
|
|||
|
||||
services:
|
||||
app:
|
||||
image: 'portainer/portainer-ce:{{ portainer_version }}-alpine'
|
||||
image: 'portainer/portainer-ce:{{ portainer.version }}-alpine'
|
||||
command: '-H tcp://tasks.agent:9001 --tlsskipverify'
|
||||
|
||||
deploy:
|
||||
|
@ -14,7 +14,7 @@ services:
|
|||
- node.role == manager
|
||||
labels:
|
||||
- 'traefik.enable=true'
|
||||
- 'traefik.http.routers.portainer.rule=Host(`{{ portainer_domain }}`)'
|
||||
- 'traefik.http.routers.portainer.rule=Host(`{{ portainer.domain }}`)'
|
||||
- 'traefik.http.routers.portainer.service=portainer'
|
||||
- 'traefik.http.services.portainer.loadbalancer.server.port=9000'
|
||||
- 'traefik.http.routers.portainer.tls=true'
|
||||
|
@ -30,7 +30,7 @@ services:
|
|||
- '8000:8000'
|
||||
|
||||
agent:
|
||||
image: 'portainer/agent:{{ portainer_version }}-alpine'
|
||||
image: 'portainer/agent:{{ portainer.version }}-alpine'
|
||||
|
||||
deploy:
|
||||
mode: global
|
||||
|
|
|
@ -3,7 +3,7 @@ version: '3'
|
|||
|
||||
services:
|
||||
app:
|
||||
image: 'traefik:{{ traefik_version }}'
|
||||
image: 'traefik:{{ traefik.version }}'
|
||||
|
||||
deploy:
|
||||
mode: replicated
|
||||
|
|
|
@ -19,7 +19,7 @@ providers:
|
|||
certificatesResolvers:
|
||||
letsEncrypt:
|
||||
acme:
|
||||
email: "{{ letsencrypt_email }}"
|
||||
email: "{{ traefik.acme_email }}"
|
||||
storage: "/etc/traefik/acme/acme.json"
|
||||
httpChallenge:
|
||||
entryPoint: web
|
||||
|
|
Loading…
Reference in New Issue