From 786da4265eae60e58d4412aad75aa3467f9b5eea Mon Sep 17 00:00:00 2001 From: Ivan Reshetnikov Date: Wed, 6 Nov 2024 16:55:33 +0500 Subject: [PATCH] Update my website --- roles/comfycamp/tasks/main.yml | 7 ++++++- roles/comfycamp/templates/comfycamp.toml.j2 | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) 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 }}"