onionpipe icon indicating copy to clipboard operation
onionpipe copied to clipboard

Example docker-compose.yml

Open Leopere opened this issue 3 years ago • 2 comments

Dunno if you'd find this useful anywhere in your documentation but this works for me.

version: "3.7"
services:
  oniongrok:
    image: ghcr.io/cmars/oniongrok:main
    ## You will need to consider changing the command.
    command: "--secrets /data/.local/share/oniongrok/secrets.json sign:80~80@sign"
    volumes:
      - ./data/:/data/.local/share/oniongrok/

## Demo App, Could be anything.
  sign:
    image: 'eerotal/libresignage:latest'
    volumes:
      - ./data/sign:/var/www/html/data'

At some point, I think it might not be a horrible idea to potentially look at making one of these examples that use the Traefik reverse proxy for fun and research. Especially if that example just uses docker labels.

Leopere avatar Feb 14 '22 14:02 Leopere

Contributions in examples like this would be great. Never heard of libresignage before -- very interesting use case.

cmars avatar Feb 15 '22 03:02 cmars

It seems that libresignage is now a dead project thats fully inaccessible. However, just for example purposes one could swap the

## Demo App, Could be anything.
  sign:
    image: 'eerotal/libresignage:latest'
    volumes:
      - ./data/sign:/var/www/html/data'

With just about anything, for example a whoami container is a good start or even just a simple container that replies with a json reply with a string in it like this example.

version: "3.7"
services:
  oniongrok:
    image: ghcr.io/cmars/oniongrok:main
    ## You will need to consider changing the command.
    command: "--secrets /data/.local/share/oniongrok/secrets.json sign:80~80@simplereply"
    volumes:
      - ./data/:/data/.local/share/oniongrok/
## Demo App, Could be anything.
  simplereply:
    image: qarlm/static-http-response-server
    ports:
      - published: 8888
        target: 80
        protocol: tcp
        mode: host
    environment:
      RESPONSE: "Hello World!"

Leopere avatar Feb 15 '22 15:02 Leopere