Last active
October 4, 2017 04:35
-
-
Save garystafford/121e955e8b97f719d1ba0075f2a8b7e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hello-logspout: | |
image: garystafford/hello-world:latest | |
networks: | |
- elk-demo | |
logging: | |
driver: json-file | |
options: | |
env: SERVICE_NAME,DEPLOY_ENV | |
max-size: 10m | |
deploy: | |
placement: | |
constraints: | |
- node.role == worker | |
- node.hostname != ${WORKER_NODE_3} | |
replicas: 2 | |
update_config: | |
parallelism: 1 | |
delay: 10s | |
restart_policy: | |
condition: on-failure | |
max_attempts: 3 | |
delay: 5s | |
environment: | |
SERVICE_NAME: hello-logspout | |
DEPLOY_ENV: ${DEPLOY_ENV} | |
command: "java \ | |
-Dspring.profiles.active=${DEPLOY_ENV} \ | |
-Djava.security.egd=file:/dev/./urandom \ | |
-jar hello-world.jar" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment