docker compose

This commit is contained in:
Kameron Kenny - pi501 2024-05-20 18:34:24 -04:00
parent 52826f65b4
commit fa5b1bc065
2 changed files with 18 additions and 0 deletions

5
Jenkinsfile vendored
View File

@ -37,6 +37,11 @@ pipeline {
}
}
}
stage("Start web1 container") {
steps {
sh 'docker compose up -d --no-color'
}
}
}
}

13
docker-compose.yml Normal file
View File

@ -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]