feat: persist shlink sqlite db
This commit is contained in:
parent
b5fe33558f
commit
1748f8c272
1 changed files with 10 additions and 0 deletions
|
@ -94,6 +94,14 @@
|
||||||
env:
|
env:
|
||||||
TZ: "{{ timezone }}"
|
TZ: "{{ timezone }}"
|
||||||
|
|
||||||
|
- name: Ensure shlink data dir exists
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ data_dir }}/shlink"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
tags:
|
||||||
|
- shlink
|
||||||
|
|
||||||
- name: Ensure container for shlink is running
|
- name: Ensure container for shlink is running
|
||||||
docker_container:
|
docker_container:
|
||||||
name: shlink
|
name: shlink
|
||||||
|
@ -109,6 +117,8 @@
|
||||||
DEFAULT_DOMAIN: "{{ shlink_domain_name }}"
|
DEFAULT_DOMAIN: "{{ shlink_domain_name }}"
|
||||||
GEOLITE_LICENSE_KEY: "{{ shlink_geolite_license_key }}"
|
GEOLITE_LICENSE_KEY: "{{ shlink_geolite_license_key }}"
|
||||||
INITIAL_API_KEY: "{{ shlink_initial_api_key }}"
|
INITIAL_API_KEY: "{{ shlink_initial_api_key }}"
|
||||||
|
volumes:
|
||||||
|
- "{{ data_dir }}/shlink/database.sqlite:/etc/shlink/datadatabase.sqlite:rw"
|
||||||
tags:
|
tags:
|
||||||
- shlink
|
- shlink
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue