init
This commit is contained in:
commit
9ba41de06d
2 changed files with 18 additions and 0 deletions
12
forumbot/init.sls
Normal file
12
forumbot/init.sls
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
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:
|
||||||
|
- 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') }}
|
||||||
|
- restart: always
|
||||||
|
- healthcheck:
|
||||||
|
test: ["CMD", "python", "/app/src/app.py", "--test_connection"]
|
6
pillar.example
Normal file
6
pillar.example
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
forumbot:
|
||||||
|
image:
|
||||||
|
path: docker.io/flipdot/forumbot
|
||||||
|
version: latest
|
||||||
|
discourse_api_key: 1234567890
|
||||||
|
sentry_dsn: https://sentry.io/flipdot/forumbot
|
Loading…
Reference in a new issue