forgot to give the DB permissions to access its stuff, whoops
This commit is contained in:
parent
d72d431a1f
commit
9fb8346a03
2 changed files with 3 additions and 3 deletions
|
@ -22,8 +22,8 @@
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: root #this is the ID Pretix uses
|
owner: 1137 #this is the ID Pretix uses
|
||||||
group: root
|
group: 1337
|
||||||
mode: '0750'
|
mode: '0750'
|
||||||
recurse: true
|
recurse: true
|
||||||
with_items:
|
with_items:
|
||||||
|
|
|
@ -5,7 +5,7 @@ Requires=docker.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStartPre=-/usr/bin/docker rm --force {{ pretix_db_container_name }}
|
ExecStartPre=-/usr/bin/docker rm --force {{ pretix_db_container_name }}
|
||||||
ExecStart=/usr/bin/docker run --name {{ pretix_db_container_name }} --network pretix --label com.centurylinklabs.watchtower.enable={WATCHTOWER_ENABLED} \
|
ExecStart=/usr/bin/docker run --name {{ pretix_db_container_name }} --user 1337:1337 --network pretix --label com.centurylinklabs.watchtower.enable={WATCHTOWER_ENABLED} \
|
||||||
-v {{ docker_volumes_dir }}/pretix/postgres-db:/var/lib/postgresql/data --env-file {{ docker_volumes_dir }}/pretix/pretix-db.env postgres:15
|
-v {{ docker_volumes_dir }}/pretix/postgres-db:/var/lib/postgresql/data --env-file {{ docker_volumes_dir }}/pretix/pretix-db.env postgres:15
|
||||||
ExecStop=/usr/bin/docker stop {{ pretix_db_container_name }}
|
ExecStop=/usr/bin/docker stop {{ pretix_db_container_name }}
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
Loading…
Reference in a new issue