Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

It doesn't work in swarm when i use compose to deploy #4

Open
mmpyro opened this issue Jul 31, 2018 · 2 comments
Open

It doesn't work in swarm when i use compose to deploy #4

mmpyro opened this issue Jul 31, 2018 · 2 comments

Comments

@mmpyro
Copy link

mmpyro commented Jul 31, 2018

Below I have presented compose file which was used for deploy.
I have used docker stack deploy --compose-file docker-compose.yml test comamnd
When I run container it work fine but with swarm it doesn't.

version: "3.1"

services:
service:
image: alpine
command: /bin/sh -c "while true; do echo 'Hello world'; sleep 1s; done"
deploy:
mode: replicated
replicas: 1
update_config:
parallelism: 1
delay: 10s
restart_policy:
condition: any
delay: 10s
max_attempts: 5
window: 120s
logging:
driver: solarwinds/papertrail-plugin
options:
papertrail-url: ":"
papertrail-token: ""

networks:
default:
external:
name: internal

@girishranganathan
Copy link
Contributor

girishranganathan commented Aug 1, 2018 via email

@mmpyro
Copy link
Author

mmpyro commented Aug 2, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants