summary refs log tree commit diff stats
path: root/libreddit/docker-compose.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'libreddit/docker-compose.yaml')
-rw-r--r--libreddit/docker-compose.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/libreddit/docker-compose.yaml b/libreddit/docker-compose.yaml
new file mode 100644
index 0000000..19dde93
--- /dev/null
+++ b/libreddit/docker-compose.yaml
@@ -0,0 +1,23 @@
+version: "3.8"
+
+services:
+  web:
+    image: libreddit/libreddit:latest
+    restart: unless-stopped
+    container_name: "libreddit"
+    user: nobody
+    read_only: true
+    security_opt:
+      - no-new-privileges:true
+    cap_drop:
+      - ALL
+    networks:
+      - swag_default
+    healthcheck:
+      test: ["CMD", "wget", "--spider", "-q", "--tries=1", "http://localhost:8080/settings"]
+      interval: 5m
+      timeout: 3s
+
+networks:
+  swag_default:
+    external: true