38 lines
663 B
YAML
38 lines
663 B
YAML
services:
|
|
app:
|
|
image: 'jc21/nginx-proxy-manager:latest'
|
|
volumes:
|
|
- npm-data:/data
|
|
- npm-ssl:/etc/letsencrypt
|
|
networks:
|
|
- npm_network
|
|
ports:
|
|
- '80:80'
|
|
- '81:81'
|
|
- '443:443'
|
|
deploy:
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
resources:
|
|
limits:
|
|
cpus: "0.5"
|
|
memory: 256M
|
|
healthcheck:
|
|
test: ["CMD", "/usr/bin/check-health"]
|
|
interval: 10s
|
|
timeout: 3s
|
|
|
|
networks:
|
|
npm_network:
|
|
driver: overlay
|
|
attachable: true
|
|
external: true
|
|
|
|
volumes:
|
|
npm-data:
|
|
external: true
|
|
npm-ssl:
|
|
external: true
|