Created
November 12, 2021 18:08
-
-
Save pierangelo1982/e5f6719276efc5e648bda1d618b2da2b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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