Skip to content

Instantly share code, notes, and snippets.

@pierangelo1982
Created November 12, 2021 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pierangelo1982/e5f6719276efc5e648bda1d618b2da2b to your computer and use it in GitHub Desktop.
Save pierangelo1982/e5f6719276efc5e648bda1d618b2da2b to your computer and use it in GitHub Desktop.
services:
reverse-proxy:
# The official v2 Traefik docker image
image: traefik:v2.5
# Enables the web UI and tells Traefik to listen to docker
command: --api.insecure=true --providers.docker
ports:
# The HTTP port
- "80:80"
# The Web UI (enabled by --api.insecure=true)
- "8080:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
my-container:
image: pierangelo1982/node_hostname:latest
labels:
- traefik.http.routers.my-container.rule=Host(`194.233.160.52`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment