58 lines
No EOL
1.1 KiB
Markdown
58 lines
No EOL
1.1 KiB
Markdown
# Role: deploy_container_traefik
|
|
|
|
## Purpose
|
|
This role deploys and configures a StirlingPDF Container with Docker Compose
|
|
|
|
## Variables
|
|
|
|
### Default Variables (`defaults/main.yml`)
|
|
```yaml
|
|
container_stirlingpdf_version: latest
|
|
container_stirlingpdf_app_name: StirlingPDF
|
|
container_stirlingpdf_app_description: Your PDF Source
|
|
container_stirlingpdf_domain: stirlingpdf.example.com
|
|
|
|
```
|
|
|
|
### Static Variables (`vars/main.yml`)
|
|
```yaml
|
|
container_base_dir: /opt/docker/stirlingpdf
|
|
```
|
|
|
|
### Role Usage
|
|
|
|
```yaml
|
|
- name: Deploy StirlingPDF container
|
|
hosts: docker
|
|
roles:
|
|
- role: deploy_container_stirlingpdf
|
|
```
|
|
|
|
## Requirements
|
|
|
|
* Linux system (tested on Debian)
|
|
* Docker Engine
|
|
* Docker Compose v2 plugin (`docker compose` CLI)
|
|
* Ansible 2.11 or higher
|
|
* `community.docker` collection
|
|
|
|
Install the required collection:
|
|
|
|
```bash
|
|
ansible-galaxy collection install community.docker
|
|
```
|
|
|
|
Or via `requirements.yml`:
|
|
|
|
```yaml
|
|
collections:
|
|
- name: community.docker
|
|
version: ">=3.4.0"
|
|
```
|
|
|
|
## Authors
|
|
|
|
* Kevin Heyer
|
|
📧 [kevin.heyer@wira-gmbh.de](mailto:kevin.heyer@wira-gmbh.de)
|
|
|
|
``` |