pretalx-docker-formula/pretalx-docker/init.sls

34 lines
1 KiB
Text
Raw Normal View History

2024-07-30 20:48:43 +02:00
pretalx-data-directory-exists:
file.directory:
2024-08-06 20:05:01 +02:00
- name: /opt/pretalx/data
- makedirs: True
pretalx-public-directory-exists:
file.directory:
- name: /opt/pretalx/public
2024-07-30 20:48:43 +02:00
- makedirs: True
pretalx-config-file-is-present:
file.managed:
- name: /opt/pretalx/pretalx.cfg
- source: salt://pretalx/pretalx.cfg.jinja
- template: jinja
pretalx-docker-container-running:
docker_container.running:
- name: pretalx
2024-08-06 20:05:01 +02:00
- image: {{ salt['pillar.get']('pretalx:image:path', 'docker.io/pretalx/standalone:latest') }}:{{ salt['pillar.get']('pretalx:image:version', 'v2024.1.0') }}
2024-07-30 20:48:43 +02:00
- container_name: pretalx
- environment:
- PRETALX_FILESYSTEM_MEDIA=/public/media
- PRETALX_FILESYSTEM_STATIC=/public/static
- restart: always
- networks:
- bridge
- binds:
- /opt/pretalx/pretalx.cfg:/etc/pretalx/pretalx.cfg:ro
2024-08-06 20:05:01 +02:00
- /opt/pretalx/data:/data
- /opt/pretalx/public:/public
2024-07-30 20:48:43 +02:00
- port_bindings:
2024-08-06 20:05:01 +02:00
- "{{ salt['pillar.get']('pretalx:container_web_port', "127.0.0.1:3000") }}:80"