Browse Source

added sample docker-compose.yml

Fabian Peter Hammerle 5 days ago
parent
commit
2e7ab0b8f4
1 changed files with 18 additions and 0 deletions
  1. 18 0
      docker-compose.yml

+ 18 - 0
docker-compose.yml

@@ -0,0 +1,18 @@
+version: '3'
+
+volumes:
+  key:
+
+services:
+  onion:
+    build: .
+    image: fphammerle/onion-service
+    volumes:
+    - key:/onion-service:rw
+    environment:
+      VIRTUAL_PORT: 80
+      TARGET: 1.2.3.4:8080
+    security_opt: [no-new-privileges]
+    restart: unless-stopped
+
+# https://docs.docker.com/compose/compose-file/