Skip to content

Instantly share code, notes, and snippets.

@EdouardCourty
Created June 17, 2022 18:17
Show Gist options
  • Save EdouardCourty/e7b1a86d79eda31bb865051caebcd744 to your computer and use it in GitHub Desktop.
Save EdouardCourty/e7b1a86d79eda31bb865051caebcd744 to your computer and use it in GitHub Desktop.
Portainer setup though docker-compose
version: '3.8'
services:
portainer:
image: portainer/portainer-ce:2.13.1
container_name: portainer
restart: unless-stopped
security_opt:
- no-new-privileges:true
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./portainer-data:/data
ports:
- target: 9000
published: 9009
protocol: tcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment