mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
- Removed outdated Installation.md (manual plugin instructions no longer needed) - Added schema/main.yml with validation for secret_pin - Added config.php.j2 template to manage DB + admin config - Refactored tasks/main.yml to deploy config.php instead of legacy docker-compose - Removed setup-domain.yml (TLS/domain handling moved to core roles) - Updated docker-compose.yml.j2 to mount config.php and use new vars - Cleaned up vars/main.yml: standardized MYBB_* variable names, added MYBB_SECRET_PIN, config paths, and container port See ChatGPT conversation: https://chatgpt.com/share/68b0ae26-93ec-800f-8785-0da7c9303090
29 lines
1.1 KiB
Django/Jinja
29 lines
1.1 KiB
Django/Jinja
{% include 'roles/docker-compose/templates/base.yml.j2' %}
|
|
application:
|
|
{% include 'roles/docker-container/templates/base.yml.j2' %}
|
|
image: {{ MYBB_IMAGE }}:{{ MYBB_VERSION }}
|
|
container_name: {{ MYBB_CONTAINER }}
|
|
restart: {{ DOCKER_RESTART_POLICY }}
|
|
volumes:
|
|
- data:/var/www/html
|
|
{% include 'roles/docker-container/templates/depends_on/dmbs_excl.yml.j2' %}
|
|
{% include 'roles/docker-container/templates/networks.yml.j2' %}
|
|
|
|
server:
|
|
{% include 'roles/docker-container/templates/base.yml.j2' %}
|
|
image: nginx:mainline
|
|
restart: {{ DOCKER_RESTART_POLICY }}
|
|
ports:
|
|
- "127.0.0.1:{{ ports.localhost.http[application_id] }}:{{ container_port }}"
|
|
volumes:
|
|
- "{{ MYBB_NGINX_CONF_DIR_HOST }}:{{ MYBB_NGINX_CONF_DIR_DOCK }}:ro"
|
|
- "{{ MYBB_CONFIG_HOST_PATH }}:{{ MYBB_CONFIG_DOCK_PATH }}:ro"
|
|
- "data:/var/www/html:ro"
|
|
{% include 'roles/docker-container/templates/healthcheck/curl.yml.j2' %}
|
|
{% include 'roles/docker-container/templates/networks.yml.j2' %}
|
|
|
|
{% include 'roles/docker-compose/templates/volumes.yml.j2' %}
|
|
data:
|
|
name: {{ MYBB_VOLUME }}
|
|
|
|
{% include 'roles/docker-compose/templates/networks.yml.j2' %} |