Created
June 7, 2022 18:09
-
-
Save lukasondrejka/08192e0ae6250e614d7a2c81dfdc071f to your computer and use it in GitHub Desktop.
Portainer docker-compose.yml
This file contains 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
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