You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.5 KiB
YAML
48 lines
1.5 KiB
YAML
---
|
|
- name: Bookstack | Create docker network.
|
|
docker_network:
|
|
name: '{{ mariadb_network }}'
|
|
|
|
- name: "Bookstack | Restore any missing volumes from S3"
|
|
ansible.builtin.include_role:
|
|
name: chatton.docker_backup.docker_s3_volume_restore
|
|
vars:
|
|
docker_backup_s3_volume:
|
|
name: "{{ bookstack_portainer_stack_name }}_config"
|
|
|
|
- name: "Bookstack | Update Portainer."
|
|
chatton.portainer.portainer_stack:
|
|
username: '{{ portainer_user }}'
|
|
password: '{{ portainer.password }}'
|
|
base_url: '{{ portainer_base_url }}'
|
|
stack_name: '{{ bookstack_portainer_stack_name }}'
|
|
endpoint_id: '{{ portainer_endpoint }}'
|
|
state: "{{ bookstack_state }}"
|
|
definition:
|
|
version: "3.1"
|
|
services:
|
|
bookstack:
|
|
labels: "{{ backup_labels }}"
|
|
image: "{{ bookstack_image }}:{{ bookstack_tag }}"
|
|
container_name: "{{ bookstack_container_name }}"
|
|
environment:
|
|
- PUID={{ bookstack_puid }}
|
|
- PGID={{ bookstack_pgid }}
|
|
- DB_HOST={{ bookstack_db_host }}
|
|
- DB_USER={{ bookstack_db_user }}
|
|
- DB_PASS={{ bookstack_password }}
|
|
- DB_DATABASE={{ bookstack_database }}
|
|
- APP_URL={{ bookstack_app_url }}
|
|
volumes:
|
|
- config:/config
|
|
ports:
|
|
- "{{ bookstack_expose_port }}:80"
|
|
restart: "{{ restart_policy }}"
|
|
volumes:
|
|
config: {}
|
|
|
|
networks:
|
|
default:
|
|
name: "{{ mariadb_network }}"
|
|
external: true
|