29 lines
547 B
YAML
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:
|