torservers / onionize-docker

Tor v3 onion services (hidden services) for Docker containers
https://hub.docker.com/r/torservers/onionize/
GNU General Public License v3.0
76 stars 15 forks source link

Document docker-compose.yml setup #8

Open broganboyer opened 2 years ago

broganboyer commented 2 years ago

Hello,

Nice project.

Just wanted to share a docker-compose.yml that could be used as an alternative to all the docker commands. It could be included somehow in the README like many docker image projects do.

version: "3"

services:
    web:
        image: nginx:alpine
        environment:
            - ONIONSERVICE_NAME=web
        networks:
            - faraday
    onion-service:
        image: torservers/onionize
        volumes:
            - /var/run/docker.sock:/tmp/docker.sock:ro
        networks:
            - faraday
            - internet

networks:
    faraday:
        driver_opts:
            com.docker.network.bridge.enable_ip_masquerade: "false"
    internet:
GenesisAdam commented 2 years ago

@Nice.