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

Aiuto con openblocks #30

Closed
billyrudi opened this issue Nov 27, 2022 · 1 comment
Closed

Aiuto con openblocks #30

billyrudi opened this issue Nov 27, 2022 · 1 comment

Comments

@billyrudi
Copy link

billyrudi commented Nov 27, 2022

Ciao mi aiuteresti con questa configurazione?
il container è openblocks:
image: "openblocksdev/openblocks-ce"
container_name: openblocks
Grazie Paolo
`

Start Traefik with the latest version

traefik:
image: traefik:v2.8
container_name: traefik
command:
# Enable Hub communication (open the port 9900 and 9901 by default)
- --experimental.hub=true
- --api.insecure=true
- --entrypoints.web.address=:80
- --providers.docker

volumes:
  - /var/run/docker.sock:/var/run/docker.sock

labels:
  traefik.http.routers.dash.rule: Host(`dash.localhost`)
  traefik.http.routers.dash.service: api@internal

ports:
  - "80:80"
  - 3000:3000

openblocks:
image: "openblocksdev/openblocks-ce"
container_name: openblocks
#ports:
# - "3000:3000"
labels:
- traefik.enable=true
- "traefik.http.routers. openblocks.rule=Host('localhost')"
- "traefik.tcp.routers.openblocks.entrypoints=tcpep"
- "traefik.tcp.routers.openblocks.service=openblocksService"
- "traefik.tcp.services.openblocksService.loadBalancer.server.port=3000"
restart: unless-stopped
`

@frigi83
Copy link
Owner

frigi83 commented Nov 29, 2022

Ciao @billyrudi , mi sembra un po' eccessivo usare trefik per accedere a un sito "solo" con HTTP. Il grande vantaggio di traefik è proprio la gestione automatica dei certificati SSL e rendere sicuro l'accesso al servizio.

Comunque non è possibile usare come nome di dominio localhost. Se vuoi puoi guardare questa guida per usare dei domini gratis.

@frigi83 frigi83 closed this as completed Nov 30, 2022
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