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
Raw Permalink Normal View History

2021-04-23 15:05:14 +02:00
version: '2.4'
2021-01-05 12:18:51 +01:00
services:
app:
2021-04-23 15:05:14 +02:00
image: 'portainer/portainer-ce:2.1.1-alpine'
2021-01-05 12:18:51 +01:00
restart: 'always'
2021-04-23 15:05:14 +02:00
healthcheck:
test: 'curl -f localhost:9000 || exit 1'
interval: '1m'
timeout: '10s'
retries: 3
start_period: '10s'
2021-01-05 12:18:51 +01:00
networks:
- 'nginx'
2021-01-05 13:26:59 +01:00
ports:
- '8000:8000'
2021-01-05 12:18:51 +01:00
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- 'data:/data'
networks:
nginx:
2021-04-23 15:05:14 +02:00
external: true
2021-01-05 12:18:51 +01:00
volumes:
data: