mirror of
https://git.local.zernis.ch/simon/homeserver.zernis.ch.git
synced 2025-12-15 21:19:40 +01:00
33 lines
1006 B
YAML
33 lines
1006 B
YAML
---
|
|
- name: Create Stirling-PDF directories if they do not exist
|
|
become: false
|
|
ansible.builtin.file:
|
|
path: /home/{{ system_user_name }}/docker/stirling_pdf/{{ item }}
|
|
state: directory
|
|
mode: '0755'
|
|
loop: '{{ stirling_pdf_folder }}'
|
|
|
|
- name: Create docker network 'proxy'
|
|
community.docker.docker_network:
|
|
name: proxy
|
|
|
|
- name: Create Stirling-PDF Container
|
|
community.docker.docker_container:
|
|
name: stirling-pdf
|
|
image: 'frooodle/s-pdf:latest'
|
|
pull: yes
|
|
state: started
|
|
restart_policy: unless-stopped
|
|
ports:
|
|
- '11006:8080'
|
|
env:
|
|
APP_LOCALE: "{{ stirling_pdf_locale }}"
|
|
APP_HOME_NAME: "{{ stirling_pdf_name }}"
|
|
APP_HOME_DESCRIPTION: "{{ stirling_pdf_description }}"
|
|
APP_NAVBAR_NAME: "{{ stirling_pdf_name }}"
|
|
APP_ROOT_PATH: /
|
|
ALLOW_GOOGLE_VISIBILITY: "{{ stirling_pdf_google_visibility | string }}"
|
|
volumes:
|
|
- /home/{{ system_user_name }}/docker/stirling_pdf/config:/configs
|
|
networks:
|
|
- name: proxy |