2019-06-12 19:48:18 +00:00
|
|
|
- name: Create Wallabag Directories
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
|
|
|
- "{{ wallabag_data_directory }}/data"
|
|
|
|
- "{{ wallabag_data_directory }}/images"
|
|
|
|
|
|
|
|
- name: Wallabag Docker Container
|
|
|
|
docker_container:
|
|
|
|
name: wallabag
|
|
|
|
image: wallabag/wallabag:latest
|
|
|
|
pull: true
|
|
|
|
volumes:
|
|
|
|
- "{{ wallabag_data_directory }}/data:/var/www/wallabag/data:rw"
|
|
|
|
- "{{ wallabag_data_directory }}/images:/var/www/wallabag/web/assets/images:rw"
|
|
|
|
ports:
|
2020-01-05 21:47:40 +00:00
|
|
|
- "{{ wallabag_port }}:80"
|
2019-06-12 19:48:18 +00:00
|
|
|
env:
|
|
|
|
SYMFONY__ENV__DOMAIN_NAME: "https://wallabag.{{ ansible_nas_domain }}"
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
labels:
|
|
|
|
traefik.backend: "wallabag"
|
|
|
|
traefik.frontend.rule: "Host:wallabag.{{ ansible_nas_domain }}"
|
|
|
|
traefik.enable: "{{ wallabag_available_externally }}"
|
2020-01-18 18:16:24 +00:00
|
|
|
traefik.port: "80"
|
2019-06-12 19:48:18 +00:00
|
|
|
traefik.frontend.headers.SSLRedirect: "true"
|
|
|
|
memory: 1g
|