Created
November 22, 2019 15:51
-
-
Save David-Lor/1cca44acace66a447f919b26938482e0 to your computer and use it in GitHub Desktop.
Portainer - Docker Compose
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' | |
services: | |
portainer: | |
# https://www.portainer.io/installation/ | |
# https://portainer.readthedocs.io/en/stable/deployment.html | |
container_name: portainer | |
image: portainer/portainer | |
ports: | |
- 9000:9000 | |
#- 9220:8000 # SSH for agent forward | |
volumes: | |
- ./data:/data | |
- /var/run/docker.sock:/var/run/docker.sock | |
- /etc/timezone:/etc/timezone:ro | |
- /etc/localtime:/etc/localtime:ro | |
command: -H unix:///var/run/docker.sock | |
restart: unless-stopped | |
networks: | |
- frontend | |
networks: | |
frontend: | |
driver: bridge | |
internal: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment