Skip to content

Instantly share code, notes, and snippets.

@ameersami
Created May 22, 2019 02:35
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 ameersami/b1bccf50f829b4113bacf4cbf1bb7d23 to your computer and use it in GitHub Desktop.
Save ameersami/b1bccf50f829b4113bacf4cbf1bb7d23 to your computer and use it in GitHub Desktop.
docker compose file for the ci cd pipeline
version: '3'
services:
traefik:
image: traefik:1.7-alpine
restart: always
ports:
- 80:80
- 443:443
networks:
- web
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik/traefik.toml:/traefik.toml
- ./traefik/acme.json:/acme.json
portainer:
image: portainer/portainer:1.20.2
restart: always
ports:
- "32768"
networks:
- web
- default
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./portainer/data:/data portainer/portainer
labels:
- "traefik.docker.network=web"
- "traefik.enable=true"
- "traefik.portainer.frontend.rule=Host:portainer.localhost"
- "traefik.portainer.port=9000"
- "traefik.portainer.protocol=http"
networks:
web:
external:
name: web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment