File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 328
328
"prefix" : " hc" ,
329
329
"body" : [" healthcheck:" , " \t\t test: ${1:command}" ],
330
330
"description" : " "
331
+ },
332
+ "DockerCompose" : {
333
+ "prefix" : " docker-compose" ,
334
+ "body" : [
335
+ " version: '3'" ,
336
+ " services:" ,
337
+ " \t $1:" ,
338
+ " \t\t image: ${2:image}" ,
339
+ " \t\t container_name: ${3:container_name}" ,
340
+ " \t\t ports:" ,
341
+ " \t\t\t - \" ${4:host_port}:${5:container_port}\" " ,
342
+ " \t\t volumes:" ,
343
+ " \t\t\t - ${6:host_volume}:${7:container_volume}" ,
344
+ " \t\t environment:" ,
345
+ " \t\t\t - ${8:env_var}=${9:env_value}"
346
+ ],
347
+ "description" : " A full Docker Compose example snippet"
348
+ },
349
+ "JenkinsCompose" : {
350
+ "prefix" : " jenkins-compose" ,
351
+ "body" : [
352
+ " jenkins:" ,
353
+ " \t image: jenkins/jenkins:lts" ,
354
+ " \t container_name: jenkins" ,
355
+ " \t ports:" ,
356
+ " \t\t - \" 8080:8080\" " ,
357
+ " \t\t - \" 50000:50000\" " ,
358
+ " \t volumes:" ,
359
+ " \t\t - jenkins_home:/var/jenkins_home" ,
360
+ " \t environment:" ,
361
+ " \t\t - JENKINS_OPTS=--prefix=/Jenkins"
362
+ ],
363
+ "description" : " A Jenkins Docker Compose example snippet"
331
364
}
332
365
}
You can’t perform that action at this time.
0 commit comments