nginx:
image: 127.0.0.1:5000/nginx:0.1
ports:
- target: 8080
published: 8082
mode: host
user: www-data:www-data
volumes:
- /srv:/srv
depends_on:
- web-dev
secrets:
- source: test_sec
target: /etc/test.11
stop_grace_period: 3m
stop_signal: SIGQUIT
deploy:
#Перезапуск сервиса
restart_policy:
condition: on-failure
delay: 15s
window: 120s
rollback_config:
order: start-first
update_config:
failure_action: rollback
monitor: 10s
max_failure_ratio: 0
order: start-first
placement:
constraints: [node.labels.registry == true]
logging:
driver: syslog
options:
tag: nginx-dev
syslog-address: "udp://10.0.0.151:514"
secrets:
cert_mysite_com:
file: /etc/docker/certbot/letsencrypt/live/mysite/cert.pem
test_sec:
file: ./deploy
Error response from daemon: rpc error: code = InvalidArgument desc = secret 'dev-test_sec' is in use by the following service: dev-fedsp_nginx