Update docker-compose.json (#461)

Added docker-compose full example and jenkins
This commit is contained in:
OranMizrahi 2024-06-09 23:01:54 +03:00 committed by GitHub
parent 7801e3cb6e
commit 7278f9d9ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"
}
}