diff --git a/compose-production.yaml b/compose-production.yaml new file mode 100644 index 0000000..88f520b --- /dev/null +++ b/compose-production.yaml @@ -0,0 +1,19 @@ +services: + userscript-proxy: + image: alling/userscript-proxy:1.1.0 + container_name: userscript-proxy + command: + - --userscripts-dir + - /my-userscripts + - --rules + - /my-rules/ignore.txt + ports: + - "8080:8080" + volumes: + - mitmproxy-ca:/root/.mitmproxy + - /absolute/path/to/my/userscripts/:/my-userscripts # Modify the part before the ':'! + - /absolute/path/to/my/rules/:/my-rules # Modify the part before the ':'! + restart: always + +volumes: + mitmproxy-ca: diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..1909693 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,16 @@ +services: + userscript-proxy: + build: + context: . + dockerfile: Dockerfile + container_name: userscript-proxy + ports: + - "8080:8080" + volumes: + - mitmproxy-ca:/root/.mitmproxy + - ./default-userscripts/:/my-userscripts + - ./default-rules/:/my-rules + restart: always + +volumes: + mitmproxy-ca: