Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example docker-compose.yml #11

Closed
Leopere opened this issue Feb 14, 2022 · 3 comments
Closed

Example docker-compose.yml #11

Leopere opened this issue Feb 14, 2022 · 3 comments

Comments

@Leopere
Copy link

Leopere commented Feb 14, 2022

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.

@cmars
Copy link
Owner

cmars commented Feb 15, 2022

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

@Leopere
Copy link
Author

Leopere commented Feb 15, 2022

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!"

@cmars
Copy link
Owner

cmars commented May 25, 2024

Going to close this out but please submit a PR if you'd like to add to examples/.

@cmars cmars closed this as completed May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants