mirror of
https://github.com/rafamadriz/friendly-snippets
synced 2024-09-16 14:04:03 +02:00
Update docker-compose.json (#461)
Added docker-compose full example and jenkins
This commit is contained in:
parent
7801e3cb6e
commit
7278f9d9ae
1 changed files with 33 additions and 0 deletions
|
@ -328,5 +328,38 @@
|
|||
"prefix": "hc",
|
||||
"body": ["healthcheck:", "\t\ttest: ${1:command}"],
|
||||
"description": ""
|
||||
},
|
||||
"DockerCompose": {
|
||||
"prefix": "docker-compose",
|
||||
"body": [
|
||||
"version: '3'",
|
||||
"services:",
|
||||
"\t$1:",
|
||||
"\t\timage: ${2:image}",
|
||||
"\t\tcontainer_name: ${3:container_name}",
|
||||
"\t\tports:",
|
||||
"\t\t\t- \"${4:host_port}:${5:container_port}\"",
|
||||
"\t\tvolumes:",
|
||||
"\t\t\t- ${6:host_volume}:${7:container_volume}",
|
||||
"\t\tenvironment:",
|
||||
"\t\t\t- ${8:env_var}=${9:env_value}"
|
||||
],
|
||||
"description": "A full Docker Compose example snippet"
|
||||
},
|
||||
"JenkinsCompose": {
|
||||
"prefix": "jenkins-compose",
|
||||
"body": [
|
||||
"jenkins:",
|
||||
"\timage: jenkins/jenkins:lts",
|
||||
"\tcontainer_name: jenkins",
|
||||
"\tports:",
|
||||
"\t\t- \"8080:8080\"",
|
||||
"\t\t- \"50000:50000\"",
|
||||
"\tvolumes:",
|
||||
"\t\t- jenkins_home:/var/jenkins_home",
|
||||
"\tenvironment:",
|
||||
"\t\t- JENKINS_OPTS=--prefix=/Jenkins"
|
||||
],
|
||||
"description": "A Jenkins Docker Compose example snippet"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue