Skip to content

Commit 8b90111

Browse files
committed
feat: portainer via caddy
1 parent b53fc13 commit 8b90111

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
# Global options block. Entirely optional, https is on by default
33
# Optional email key for lets encrypt
4-
email youremail@domain.com
4+
email nokwebspace@gmail.com
55
# Optional staging lets encrypt for testing. Comment out for production.
66
acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
77
}

ansible/roles/docker-swarm-app-caddy/assets/caddy-stack.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ services:
4141
- caddy
4242
deploy:
4343
labels:
44-
caddy: whoami.nokwebspace.ovh
44+
caddy: whoami.{{domain}}
4545
# this include escape for ansible
4646
caddy.reverse_proxy: "{{ '{{' }}upstreams 80{{ '}}' }}"
4747

ansible/roles/docker-swarm-app-portainer/assets/portainer-agent-stack.yml.j2

+6
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ services:
3434
replicas: 1
3535
placement:
3636
constraints: [node.role == manager]
37+
{% if caddy %}
38+
labels:
39+
caddy: portainer.{{domain}}
40+
# this include escape for ansible
41+
caddy.reverse_proxy: "{{ '{{' }}upstreams 9000{{ '}}' }}"
42+
{% endif %}
3743

3844
networks:
3945
agent_network:

0 commit comments

Comments
 (0)