forumbot-formula/forumbot/init.sls

13 lines
645 B
Text
Raw Normal View History

2024-12-15 16:14:01 +01:00
forumbot docker_container.running:
docker_container.running:
- name: forumbot
- image: {{ salt['pillar.get']('postgres:image:path', 'docker.io/flipdot/forumbot') }}:{{ salt['pillar.get']('postgres:image:version', 'latest') }}
- container_name: forumbot
- environment:
2024-12-15 16:18:57 +01:00
- DISCOURSE_API_KEY: {{ salt['pillar.get']('forumbot:discourse_api_key', "") }}
- DISCOURSE_USERNAME: {{ salt['pillar.get']('forumbot:discourse_username', "") }}
- SENTRY_DSN: {{ salt['pillar.get']('forumbot:sentry_dsn', "") }}
2024-12-15 16:14:01 +01:00
- restart: always
- healthcheck:
test: ["CMD", "python", "/app/src/app.py", "--test_connection"]