Page MenuHomeDevCentral

D2860.diff
No OneTemporary

D2860.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
Thu, Dec 26, 20:44 (7 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2316090
Default Alt Text
D2860.diff (1 KB)

Event Timeline