Page MenuHomeDevCentral

D2859.id.diff
No OneTemporary

D2859.id.diff

diff --git a/pillar/paas/docker.sls b/pillar/paas/docker.sls
--- a/pillar/paas/docker.sls
+++ b/pillar/paas/docker.sls
@@ -211,6 +211,11 @@
sentry_db:
credential: nasqueron.sentry.postgresql
+ memcached:
+ sentry_memcached:
+ version: 1.6.9-alpine
+ network: sentry
+
redis:
sentry_redis: {}
pixelfed_redis: {}
diff --git a/roles/paas-docker/containers/memcached.sls b/roles/paas-docker/containers/memcached.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/containers/memcached.sls
@@ -0,0 +1,33 @@
+# -------------------------------------------------------------
+# Salt — Provision Docker engine
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% set has_selinux = salt['grains.get']('selinux:enabled', False) %}
+{% set containers = pillar['docker_containers'][grains['id']] %}
+
+{% for instance, container in containers['memcached'].items() %}
+{% set image = salt['paas_docker.get_image']("memcached", container) %}
+
+# -------------------------------------------------------------
+# Container
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{{ instance }}:
+ docker_container.running:
+ - detach: True
+ - interactive: True
+ - image: {{ image }}
+ - healthcheck:
+ Test:
+ - CMD-SHELL
+ - echo stats | nc 127.0.0.1 11211
+ Interval: 30000000000
+{% if 'network' in container %}
+ - networks:
+ - {{ container['network'] }}
+{% endif %}
+
+{% endfor %}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 23:11 (15 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250457
Default Alt Text
D2859.id.diff (1 KB)

Event Timeline