diff --git a/roles/comfycamp/tasks/main.yml b/roles/comfycamp/tasks/main.yml index 953afd6..6ef9ea8 100644 --- a/roles/comfycamp/tasks/main.yml +++ b/roles/comfycamp/tasks/main.yml @@ -12,16 +12,21 @@ dest: /etc/comfycamp/config.local.toml owner: root mode: "0600" +- name: Create comfycamp volume + become: true + community.docker.docker_volume: + name: comfycamp - name: Create comfycamp container become: true community.docker.docker_container: name: comfycamp - image: git.comfycamp.space/lumin/comfycamp:v2.1.0 + image: git.comfycamp.space/lumin/comfycamp:v2.2.0 networks: - name: postgresql - name: haproxy volumes: - /etc/comfycamp/config.local.toml:/usr/src/comfycamp/config.local.toml:ro + - comfycamp:/var/lib/comfycamp env: RUST_LOG: warn restart_policy: unless-stopped diff --git a/roles/comfycamp/templates/comfycamp.toml.j2 b/roles/comfycamp/templates/comfycamp.toml.j2 index 8d38a28..2648725 100644 --- a/roles/comfycamp/templates/comfycamp.toml.j2 +++ b/roles/comfycamp/templates/comfycamp.toml.j2 @@ -1,4 +1,5 @@ url = "https://comfycamp.space" +uploads_dir = "/var/lib/comfycamp" [database] url = "{{ database_url }}"