Skip to content

Instantly share code, notes, and snippets.

@webfacer
Created April 22, 2019 00:18
Show Gist options
  • Save webfacer/36718bfd933fa13efc334a64863cda77 to your computer and use it in GitHub Desktop.
Save webfacer/36718bfd933fa13efc334a64863cda77 to your computer and use it in GitHub Desktop.
remove prefix "jenkins-" that docker-compose recognize the yml file
version: '2'
services:
jenkins:
image: 'jenkins/jenkins:lts'
labels:
kompose.service.type: nodeport
ports:
- '80:8080'
- '443:8443'
- '50000:50000'
volumes:
- 'jenkins_data:/jenkins_config'
volumes:
jenkins_data:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment