Skip to content

Instantly share code, notes, and snippets.

@rbdiang
Created January 13, 2018 23:29
Show Gist options
  • Save rbdiang/2a2f9bf9d00efc3405c50815182b6bbd to your computer and use it in GitHub Desktop.
Save rbdiang/2a2f9bf9d00efc3405c50815182b6bbd to your computer and use it in GitHub Desktop.
A docker-compose file that deploys portainer service as a stack on a mac.
# Make sure user has read permission on docker sock
# sudo chmod o+r /var/run/docker.sock
#
version: "3.3"
services:
portainer:
image: portainer/portainer
ports:
- 8443:9000
command:
- --ssl
- --sslcert=/certs/imac.yantz5.crt
- --sslkey=/certs/imac.yantz5.key
volumes:
- /Users/brian/certs:/certs
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
- type: bind
source: /Users/brian/Development/docker/my-stacks/portainer-data
target: /data
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment