Migrate services part
This commit is contained in:
parent
7c59e4ae57
commit
73bce8f6e5
157 changed files with 3883 additions and 9 deletions
inventory/group_vars/all
37
inventory/group_vars/all/compose_defaults.yml
Normal file
37
inventory/group_vars/all/compose_defaults.yml
Normal file
|
@ -0,0 +1,37 @@
|
|||
compose_file_main:
|
||||
services:
|
||||
app:
|
||||
image: "{{ compose.image }}"
|
||||
restart: always
|
||||
labels:
|
||||
com.centurylinklabs.watchtower.enable: "{{ compose.watchtower | default(false) }}"
|
||||
|
||||
compose_file_env:
|
||||
services:
|
||||
app:
|
||||
env_file:
|
||||
- service.env
|
||||
|
||||
compose_file_networks:
|
||||
services:
|
||||
app:
|
||||
networks:
|
||||
default:
|
||||
apps:
|
||||
aliases:
|
||||
- "{{ svc.name }}"
|
||||
networks:
|
||||
default:
|
||||
apps:
|
||||
external: true
|
||||
|
||||
compose_file_volumes:
|
||||
services:
|
||||
app:
|
||||
volumes: "{{ compose.volumes }}"
|
||||
|
||||
compose_file_monitoring_label:
|
||||
services:
|
||||
app:
|
||||
labels:
|
||||
com.influxdata.telegraf.enable: true
|
22
inventory/group_vars/all/main.yml
Normal file
22
inventory/group_vars/all/main.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
admin_email: tobias@msrg.cc
|
||||
timezone: Europe/Berlin
|
||||
|
||||
postgres:
|
||||
host: db.serguzim.me
|
||||
port: 5432
|
||||
|
||||
mailer:
|
||||
host: mail.serguzim.me
|
||||
port: 587
|
||||
|
||||
acme_dns:
|
||||
host: acme.serguzim.me
|
||||
|
||||
|
||||
services_path: /opt/services/
|
||||
|
||||
caddy_path: "{{ (services_path, 'caddy') | path_join }}"
|
||||
caddy_config_path: "{{ (caddy_path, 'config', 'conf.d') | path_join }}"
|
||||
managed_sites: []
|
||||
|
||||
certificates_path: "{{ (services_path, '_certificates') | path_join }}"
|
Loading…
Add table
Add a link
Reference in a new issue