Solved bugs

This commit is contained in:
Kevin Veen-Birkenbach 2023-12-24 21:42:32 +01:00
parent 4c8b96c34a
commit 5ab43653bd
2 changed files with 6 additions and 13 deletions

View File

@ -2,18 +2,6 @@
- name: "include tasks nginx-docker-proxy-domain.yml"
include_tasks: nginx-docker-proxy-domain.yml
- name: register repository_directory_register
stat:
path: "{{repository_directory}}"
register: repository_directory_register
- name: checkout repository
ansible.builtin.shell: git checkout .
become: true
args:
chdir: "{{repository_directory}}"
when: repository_directory_register.stat.exists
- name: "backup docker-compose.yml if it exists"
command: >
mv "{{ docker_compose_file_path }}" "{{ docker_compose_backup_path }}"
@ -26,6 +14,7 @@
repo: "https://github.com/opf/openproject-deploy"
dest: "{{ repository_directory }}"
update: yes
force: yes
notify: recreate openproject
become: true
register: git_result

View File

@ -28,6 +28,7 @@ x-op-app: &app
IMAP_ENABLED: "${IMAP_ENABLED:-false}"
volumes:
- "${OPDATA}:/var/openproject/assets"
- "${PGDATA}:/var/openproject/pgdata"
services:
db:
@ -60,6 +61,9 @@ services:
- web
networks:
- frontend
volumes:
- "${OPDATA}:/var/openproject/assets"
- "${PGDATA}:/var/openproject/pgdata"
web:
<<: *app