|
|
@ -22,7 +22,7 @@
|
|
|
|
path: /mnt/lotus-land-story/postgresql
|
|
|
|
path: /mnt/lotus-land-story/postgresql
|
|
|
|
state: directory
|
|
|
|
state: directory
|
|
|
|
owner: postgres
|
|
|
|
owner: postgres
|
|
|
|
mode: "0755"
|
|
|
|
mode: "0700"
|
|
|
|
- name: Set data directory to volume
|
|
|
|
- name: Set data directory to volume
|
|
|
|
ansible.builtin.lineinfile:
|
|
|
|
ansible.builtin.lineinfile:
|
|
|
|
dest: "/etc/postgresql/13/main/postgresql.conf"
|
|
|
|
dest: "/etc/postgresql/13/main/postgresql.conf"
|
|
|
@ -115,7 +115,7 @@
|
|
|
|
community.postgresql.postgresql_user:
|
|
|
|
community.postgresql.postgresql_user:
|
|
|
|
db: miniflux
|
|
|
|
db: miniflux
|
|
|
|
name: miniflux
|
|
|
|
name: miniflux
|
|
|
|
password: miniflux
|
|
|
|
password: "{{ miniflux_db_password }}"
|
|
|
|
notify: Restart postgres
|
|
|
|
notify: Restart postgres
|
|
|
|
- name: Grant miniflux access
|
|
|
|
- name: Grant miniflux access
|
|
|
|
community.postgresql.postgresql_pg_hba:
|
|
|
|
community.postgresql.postgresql_pg_hba:
|
|
|
@ -143,7 +143,7 @@
|
|
|
|
ports:
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
- "8080:8080"
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
- DATABASE_URL=postgres://miniflux:miniflux@host.docker.internal/miniflux
|
|
|
|
- DATABASE_URL=postgres://miniflux:{{ miniflux_db_password }}@host.docker.internal/miniflux
|
|
|
|
- RUN_MIGRATIONS=1
|
|
|
|
- RUN_MIGRATIONS=1
|
|
|
|
- CREATE_ADMIN=1
|
|
|
|
- CREATE_ADMIN=1
|
|
|
|
- ADMIN_USERNAME=alpha
|
|
|
|
- ADMIN_USERNAME=alpha
|
|
|
|