Move Caddy into its own docker-compose config

This commit is contained in:
2022-09-14 23:09:41 +02:00
parent 108cbf6588
commit 41285646b4
8 changed files with 40 additions and 20 deletions
+1
View File
@@ -22,6 +22,7 @@ Sets up:
Deploys Docker configurations from `../docker`:
- Sets up the docker network `caddy-network` for services that are reverse proxied by caddy
- Copies configuration into `/etc/pbri/docker`
- Creates folder `/var/lib/pbri/docker` for storing application files
- Creates users with `42xxx` UIDs for running containers
+8
View File
@@ -1,6 +1,12 @@
---
- hosts: misc
tasks:
# All services that are behind Caddy need to be in this network
- name: Create Caddy network
become: yes
docker_network:
name: caddy-network
state: present
- name: Upload docker configuration
become: yes
copy:
@@ -31,6 +37,8 @@
state: absent
- name: gitea
state: present
- name: caddy
state: present
- name: Add users for running containers
become: yes
ansible.builtin.user: