fix!: Make paths absolute.

Breaking change!
This commit is contained in:
Laur Ivan 2022-12-11 00:55:45 +01:00
parent 79e1a31074
commit 310649b973
2 changed files with 12 additions and 12 deletions

View File

@ -21,10 +21,10 @@
group: "{% if outline_gid %}{{ outline_gid }}{% else %}{{ ansible_effective_group_id }}{% endif %}" group: "{% if outline_gid %}{{ outline_gid }}{% else %}{{ ansible_effective_group_id }}{% endif %}"
mode: "0750" mode: "0750"
with_items: with_items:
- "{{ outline_setup_path }}" - "{{ outline_setup_path | expanduser | realpath }}"
- "{{ outline_volume_redis }}" - "{{ outline_volume_redis | expanduser | realpath }}"
- "{{ outline_volume_db }}" - "{{ outline_volume_db | expanduser | realpath }}"
- "{{ outline_volume_s3 }}" - "{{ outline_volume_s3 | expanduser | realpath }}"
tags: tags:
- configuration - configuration
@ -33,7 +33,7 @@
- name: Write configuration files - name: Write configuration files
ansible.builtin.template: ansible.builtin.template:
src: "{{ item }}.j2" src: "{{ item }}.j2"
dest: "{{ outline_setup_path }}/{{ item }}" dest: "{{ outline_setup_path | expanduser | realpath }}/{{ item }}"
mode: '0640' mode: '0640'
loop: loop:
- "docker-compose.yml" - "docker-compose.yml"
@ -47,6 +47,6 @@
- name: Ensure all requested components are running. - name: Ensure all requested components are running.
community.docker.docker_compose: community.docker.docker_compose:
project_src: "{{ outline_setup_path }}" project_src: "{{ outline_setup_path | expanduser | realpath }}"
build: false build: false
become: false become: false

View File

@ -13,7 +13,7 @@ services:
networks: networks:
- outline - outline
volumes: volumes:
- {{ outline_volume_redis }}:/data - {{ outline_volume_redis | expanduser | realpath }}:/data
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
@ -21,7 +21,7 @@ services:
postgres: postgres:
image: docker.io/library/postgres:12-alpine image: docker.io/library/postgres:12-alpine
env_file: env_file:
- "{{ outline_setup_path }}/env.db.conf" - "{{ outline_setup_path | expanduser | realpath }}/env.db.conf"
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"] test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
@ -45,13 +45,13 @@ services:
s3: s3:
image: lphoward/fake-s3 image: lphoward/fake-s3
env_file: env_file:
- "{{ outline_setup_path }}/env.s3.conf" - "{{ outline_setup_path | expanduser | realpath }}/env.s3.conf"
{% if outline_fake_s3_port %} {% if outline_fake_s3_port %}
ports: ports:
- {{ outline_fake_s3_port }}:4569 - {{ outline_fake_s3_port }}:4569
{% endif %} {% endif %}
volumes: volumes:
- {{ outline_volume_s3 }}:/fakes3_root - {{ outline_volume_s3 | expanduser | realpath }}:/fakes3_root
networks: networks:
- outline - outline
{% endif %} {% endif %}
@ -61,8 +61,8 @@ services:
command: sh -c "yarn start" command: sh -c "yarn start"
# command: sh -c "yarn sequelize:migrate --env production-ssl-disabled && yarn start" # command: sh -c "yarn sequelize:migrate --env production-ssl-disabled && yarn start"
env_file: env_file:
- "{{ outline_setup_path }}/env.outline.conf" - "{{ outline_setup_path | expanduser | realpath }}/env.outline.conf"
- "{{ outline_setup_path }}/env.oidc.conf" - "{{ outline_setup_path | expanduser | realpath }}/env.oidc.conf"
restart: always restart: always
ports: ports:
- {{ outline_port }}:3000 - {{ outline_port }}:3000