new per-host caddy extras file
This commit is contained in:
parent
4f5d964015
commit
a03de1ebdf
@ -1,17 +0,0 @@
|
||||
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
scribe:
|
||||
image: registry.gitlab.com/lomanic/scribe-binaries:latest
|
||||
restart: always
|
||||
container_name: "scribe"
|
||||
ports:
|
||||
- 127.0.0.1:6265:8006
|
||||
environment:
|
||||
- SCRIBE_PORT=8006
|
||||
- SCRIBE_HOST=0.0.0.0
|
||||
- APP_DOMAIN=scribe.projectsegfau.lt
|
||||
- LUCKY_ENV=production
|
||||
- PORT=8006
|
||||
- SECRET_KEY_BASE=uVN1eX+RQu7HVuIC0IoPonoy9Lk4rdNV0byjHjzo76M=
|
@ -1,37 +0,0 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
|
||||
teddit:
|
||||
container_name: teddit
|
||||
image: teddit/teddit:latest
|
||||
environment:
|
||||
- DOMAIN=teddit.projectsegfau.lt
|
||||
- USE_HELMET=true
|
||||
- USE_HELMET_HSTS=true
|
||||
- TRUST_PROXY=true
|
||||
- REDIS_HOST=teddit-redis
|
||||
ports:
|
||||
- "127.0.0.1:6974:8080"
|
||||
networks:
|
||||
- teddit_net
|
||||
healthcheck:
|
||||
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost:8080/about"]
|
||||
interval: 1m
|
||||
timeout: 3s
|
||||
depends_on:
|
||||
- teddit-redis
|
||||
restart: always
|
||||
|
||||
teddit-redis:
|
||||
container_name: teddit-redis
|
||||
image: redis:6.2.5-alpine
|
||||
command: redis-server
|
||||
environment:
|
||||
- REDIS_REPLICATION_MODE=master
|
||||
networks:
|
||||
- teddit_net
|
||||
restart: always
|
||||
|
||||
networks:
|
||||
teddit_net:
|
@ -4,12 +4,15 @@ ansibletest:
|
||||
ansible_host: in.projectsegfau.lt
|
||||
ansible_user: root
|
||||
ansible_port: 6945
|
||||
caddy_extras_config: templates/1-extras.caddy
|
||||
ansible02:
|
||||
ansible_host: in.projectsegfau.lt
|
||||
ansible_user: root
|
||||
ansible_port: 6946
|
||||
caddy_extras_config: templates/2-extras.caddy
|
||||
ansible03:
|
||||
ansible_host: in.projectsegfau.lt
|
||||
ansible_user: root
|
||||
ansible_port: 6947
|
||||
caddy_extras_config: templates/3-extras.caddy
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
- hosts: all
|
||||
- hosts: ansibletest
|
||||
roles:
|
||||
- role: caddy_ansible.caddy_ansible
|
||||
caddy_systemd_capabilities_enabled: true
|
||||
@ -8,3 +8,8 @@
|
||||
caddy_home: "/var/lib/caddy"
|
||||
# Static weekly builds of caddy with rfc2136
|
||||
caddy_url_base: "https://cb.projectsegfau.lt/api/download"
|
||||
tasks:
|
||||
- name: Copy per-server caddy extras
|
||||
ansible.builtin.copy:
|
||||
src: "../{{ caddy_extras_config }}"
|
||||
dest: /etc/caddy/extras.caddy
|
||||
|
1
templates/1-extras.caddy
Normal file
1
templates/1-extras.caddy
Normal file
@ -0,0 +1 @@
|
||||
Some shit ansible01
|
1
templates/2-extras.caddy
Normal file
1
templates/2-extras.caddy
Normal file
@ -0,0 +1 @@
|
||||
Some more shit ansible02
|
1
templates/3-extras.caddy
Normal file
1
templates/3-extras.caddy
Normal file
@ -0,0 +1 @@
|
||||
Some more more shit ansible03
|
Loading…
Reference in New Issue
Block a user