docker compose
This commit is contained in:
parent
52826f65b4
commit
fa5b1bc065
|
@ -37,6 +37,11 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage("Start web1 container") {
|
||||||
|
steps {
|
||||||
|
sh 'docker compose up -d --no-color'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
services:
|
||||||
|
kameronkenny_com_web1:
|
||||||
|
container_name: kameronkenny.com_web1
|
||||||
|
image: docker-registry1.in.thelinuxpro.net:5000/sites/kameronkenny.com:latest
|
||||||
|
ports:
|
||||||
|
- '4000:4000'
|
||||||
|
restart: always
|
||||||
|
user: root
|
||||||
|
deploy:
|
||||||
|
placement:
|
||||||
|
constraints: [node.role == manager]
|
Loading…
Reference in New Issue