This repository has been archived on 2021-12-24. You can view files and clone it, but cannot push or open issues/pull-requests.
self-hosting/portainer/docker-compose.yml

29 lines
547 B
YAML

version: '2.4'
services:
app:
image: 'portainer/portainer-ce:2.1.1-alpine'
restart: 'always'
healthcheck:
test: 'curl -f localhost:9000 || exit 1'
interval: '1m'
timeout: '10s'
retries: 3
start_period: '10s'
networks:
- 'nginx'
ports:
- '8000:8000'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- 'data:/data'
networks:
nginx:
external: true
volumes:
data: