mirror of
https://gitlab.com/rusty-bever/deployment.git
synced 2026-04-08 11:55:47 +02:00
Moved ansible stuff to own folder
This commit is contained in:
parent
868acbc08f
commit
fb5bb177ca
33 changed files with 1 additions and 22 deletions
30
ansible/roles/traefik-deploy/templates/traefik-stack.yml.j2
Normal file
30
ansible/roles/traefik-deploy/templates/traefik-stack.yml.j2
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# vim: ft=yaml
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
app:
|
||||
image: 'traefik:{{ traefik_version }}'
|
||||
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname == alpha
|
||||
|
||||
networks:
|
||||
- public
|
||||
ports:
|
||||
- '80:80'
|
||||
- '443:443'
|
||||
volumes:
|
||||
- '/srv/traefik.yml:/etc/traefik/traefik.yml'
|
||||
- 'acme:/etc/traefik/acme'
|
||||
- '/var/run/docker.sock:/var/run/docker.sock'
|
||||
|
||||
networks:
|
||||
public:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
acme:
|
||||
25
ansible/roles/traefik-deploy/templates/traefik.yml.j2
Normal file
25
ansible/roles/traefik-deploy/templates/traefik.yml.j2
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# vim: ft=yaml
|
||||
entryPoints:
|
||||
web:
|
||||
address: ":80"
|
||||
http:
|
||||
redirections:
|
||||
entryPoint:
|
||||
to: websecure
|
||||
scheme: https
|
||||
websecure:
|
||||
address: ":443"
|
||||
|
||||
providers:
|
||||
docker:
|
||||
swarmMode: true
|
||||
exposedbydefault: false
|
||||
network: public
|
||||
|
||||
certificatesResolvers:
|
||||
letsEncrypt:
|
||||
acme:
|
||||
email: "{{ letsencrypt_email }}"
|
||||
storage: "/etc/traefik/acme/acme.json"
|
||||
httpChallenge:
|
||||
entryPoint: web
|
||||
Loading…
Add table
Add a link
Reference in a new issue