Skip to content

Instantly share code, notes, and snippets.

@jhburns
Last active November 27, 2018 07:20
Show Gist options
  • Save jhburns/6962fffcf6efbce0faf4a142731de838 to your computer and use it in GitHub Desktop.
Save jhburns/6962fffcf6efbce0faf4a142731de838 to your computer and use it in GitHub Desktop.
version: '2'
services:
portainer:
image: portainer/portainer
ports:
- "9000:9000"
command: -H unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
labels:
- "traefik.backend=portainer"
- "traefik.frontend.rule=PathPrefixStripRegex:/ship/"
- "traefik.docker.network=${COMPOSE_PROJECT_NAME}_monitoring"
- "traefik.enable=true"
- "traefik.port=9000"
- "traefik.default.protocol=http"
wemips:
build: ./WeMips
ports:
- "5000:80"
labels:
- "traefik.backend=wemips"
- "traefik.frontend.rule=PathPrefixStripRegex:/wemips/"
reverse-proxy:
image: traefik
command: --api --docker
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
portainer_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment