Move Caddy into its own docker-compose config
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user