mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-31 23:58:57 +02:00
web-app-pretix: fully implemented role
Summary: - Replace draft with complete README (features, resources, credits). - Remove obsolete Todo.md. - Switch to custom image tag (PRETIX_IMAGE_CUSTOM) and install 'pretix-oidc' in Dockerfile. - Drop unused 'config' volume; keep persistent 'data' only. - Rename docker-compose service from 'application' to 'pretix' and use container_port. - Use standard depends_on include for DB/Redis (dmbs_excl). - Align vars to docker.services.pretix.* (image/version/name); add PRETIX_IMAGE_CUSTOM. Breaking: - Service key changed to 'pretix' under docker.services. - 'config' volume removed from compose. Status: - Pretix role is now fully implemented and production-ready. Reference: - Conversation: https://chatgpt.com/share/68b1cb34-b7dc-800f-8b39-c183124972f2
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
ARG PRETIX_BASE_IMAGE={{ PRETIX_IMAGE }}:{{ PRETIX_VERSION }}
|
||||
FROM ${PRETIX_BASE_IMAGE}
|
||||
FROM {{ PRETIX_IMAGE }}:{{ PRETIX_VERSION }}
|
||||
# Install OIDC auth plugin for Pretix
|
||||
RUN python -m pip install --no-cache-dir "pretix-oidc=={{ PRETIX_OIDC_PLUGIN_VERSION }}"
|
||||
|
@@ -1,31 +1,22 @@
|
||||
services:
|
||||
{% include 'roles/docker-compose/templates/base.yml.j2' %}
|
||||
|
||||
application:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
PRETIX_BASE_IMAGE: "{{ PRETIX_IMAGE }}:{{ PRETIX_VERSION }}"
|
||||
image: "{{ PRETIX_IMAGE }}:{{ PRETIX_VERSION }}-oidc"
|
||||
image: "{{ PRETIX_IMAGE_CUSTOM }}"
|
||||
container_name: "{{ PRETIX_CONTAINER }}"
|
||||
hostname: '{{ PRETIX_HOSTNAME}}'
|
||||
command: ["all"]
|
||||
ports:
|
||||
- "127.0.0.1:{{ ports.localhost.http[application_id] }}:80"
|
||||
- "127.0.0.1:{{ ports.localhost.http[application_id] }}:{{ container_port }}"
|
||||
volumes:
|
||||
- 'data:/data'
|
||||
- 'config:/etc/pretix'
|
||||
{% include 'roles/docker-container/templates/healthcheck/curl.yml.j2' %}
|
||||
{% include 'roles/docker-container/templates/base.yml.j2' %}
|
||||
depends_on:
|
||||
- database
|
||||
- redis
|
||||
{% include 'roles/docker-container/templates/depends_on/dmbs_excl.yml.j2' %}
|
||||
{% include 'roles/docker-container/templates/networks.yml.j2' %}
|
||||
|
||||
{% include 'roles/docker-compose/templates/volumes.yml.j2' %}
|
||||
config:
|
||||
name: {{ PRETIX_CONF_VOLUME }}
|
||||
data:
|
||||
name: {{ PRETIX_DATA_VOLUME }}
|
||||
|
||||
|
Reference in New Issue
Block a user