Fix data directory
This commit is contained in:
parent
235cc19b9b
commit
af0ddb5ba1
1 changed files with 5 additions and 5 deletions
10
pottwal.yml
10
pottwal.yml
|
@ -187,7 +187,7 @@
|
||||||
|
|
||||||
- name: Check if hedgedoc data dir exists
|
- name: Check if hedgedoc data dir exists
|
||||||
ansible.builtin.stat:
|
ansible.builtin.stat:
|
||||||
path: "/srv/docker/hedgedoc"
|
path: "/srv/data/hedgedoc"
|
||||||
register: hedgedoc_dir
|
register: hedgedoc_dir
|
||||||
- name: Fail if hedgedoc data dir does not exist
|
- name: Fail if hedgedoc data dir does not exist
|
||||||
ansible.builtin.fail:
|
ansible.builtin.fail:
|
||||||
|
@ -199,8 +199,8 @@
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
with_items:
|
with_items:
|
||||||
- "/srv/docker/hedgedoc/data/database"
|
- "/srv/data/hedgedoc/data/database"
|
||||||
- "/srv/docker/hedgedoc/data/uploads"
|
- "/srv/data/hedgedoc/data/uploads"
|
||||||
|
|
||||||
- name: Setup docker network
|
- name: Setup docker network
|
||||||
docker_network:
|
docker_network:
|
||||||
|
@ -221,7 +221,7 @@
|
||||||
POSTGRES_PASSWORD: "{{ hedgedoc_postgres_password }}"
|
POSTGRES_PASSWORD: "{{ hedgedoc_postgres_password }}"
|
||||||
POSTGRES_DB: hedgedoc
|
POSTGRES_DB: hedgedoc
|
||||||
volumes:
|
volumes:
|
||||||
- "/srv/docker/hedgedoc/data/database:/var/lib/postgresql/data"
|
- "/srv/data/hedgedoc/data/database:/var/lib/postgresql/data"
|
||||||
networks:
|
networks:
|
||||||
- name: hedgedocnet
|
- name: hedgedocnet
|
||||||
|
|
||||||
|
@ -246,7 +246,7 @@
|
||||||
CMD_DB_USERNAME: hedgedoc
|
CMD_DB_USERNAME: hedgedoc
|
||||||
CMD_DB_PASSWORD: "{{ hedgedoc_postgres_password }}"
|
CMD_DB_PASSWORD: "{{ hedgedoc_postgres_password }}"
|
||||||
volumes:
|
volumes:
|
||||||
- /srv/docker/hedgedoc/data/uploads:/hedgedoc/public/uploads
|
- /srv/data/hedgedoc/data/uploads:/hedgedoc/public/uploads
|
||||||
networks:
|
networks:
|
||||||
- name: hedgedocnet
|
- name: hedgedocnet
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue