Skip to content

Instantly share code, notes, and snippets.

@lukasondrejka
Created June 7, 2022 18:09
Show Gist options
  • Save lukasondrejka/08192e0ae6250e614d7a2c81dfdc071f to your computer and use it in GitHub Desktop.
Save lukasondrejka/08192e0ae6250e614d7a2c81dfdc071f to your computer and use it in GitHub Desktop.
Portainer docker-compose.yml
version: '3.2'
services:
agent:
image: portainer/agent
restart: always
networks:
- portainer
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
portainer:
image: portainer/portainer-ce
restart: always
command: -H tcp://agent:9001 --tlsskipverify
networks:
- portainer
ports:
- "9000:9000"
volumes:
- portainer_data:/data
depends_on:
- agent
networks:
portainer:
volumes:
portainer_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment