Removed anonymous volumes

This commit is contained in:
2024-01-13 21:38:02 +01:00
parent bb9daf27e5
commit 5d1ac3c17c
7 changed files with 34 additions and 14 deletions

View File

@@ -8,6 +8,12 @@
- name: "include tasks update-repository-with-docker-compose.yml"
include_tasks: update-repository-with-docker-compose.yml
- name: "create {{dummy_volume}}"
file:
path: "{{dummy_volume}}"
state: directory
mode: 0755
- name: "copy .env"
template:
src: env.j2

View File

@@ -17,7 +17,7 @@ x-op-app: &app
IMAP_ENABLED: "${IMAP_ENABLED:-false}"
volumes:
- "data:/var/openproject/assets"
# - "database:/var/openproject/pgdata"
- "{{dummy_volume}}:/var/openproject/pgdata" # This mount is unnecessary and just done to prevent anonymous volumes
services:
@@ -42,7 +42,7 @@ services:
{% include 'templates/docker-container-networks.yml.j2' %}
volumes:
- "data:/var/openproject/assets"
# - "database:/var/openproject/pgdata" Should definetly not be necessary here
- "{{dummy_volume}}:/var/openproject/pgdata" # This mount is unnecessary and just done to prevent anonymous volumes
web:
<<: *app

View File

@@ -5,4 +5,6 @@ docker_compose_file_path: "{{docker_compose_instance_directory}}docker
docker_compose_backup_path: "/tmp/{{docker_compose_project_name}}-docker-compose-backup.yml"
database_password: "{{openproject_database_password}}"
repository_address: "https://github.com/opf/openproject-deploy"
database_type: "postgres"
database_type: "postgres"
# The following volume doesn't have a function. It just exist to prevent the creation of unnecessary anonymous volumes
dummy_volume: "{{repository_directory}}dummy_volume"