Skip to content

Instantly share code, notes, and snippets.

@felipebossolani
Created January 2, 2020 19:18
Show Gist options
  • Save felipebossolani/4bcfda59e87f72cbdcfebf7a6169d544 to your computer and use it in GitHub Desktop.
Save felipebossolani/4bcfda59e87f72cbdcfebf7a6169d544 to your computer and use it in GitHub Desktop.
# docker-compose.exe -f docker-compose.yml -f docker-production.yml up -d
version: "3"
services:
traefik:
image: "traefik"
container_name: "traefik"
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
meuportfolio-api:
container_name: "meuportfolio-api"
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:stage-api.meuportfol.io"
- "traefik.port=80"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment