This commit is contained in:
Stefan Liebl 2020-07-08 15:11:12 +02:00
parent 32d81b73bb
commit 79cb9b0d61
3 changed files with 28 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
jenkins

View File

@ -1,3 +1,13 @@
# docker-compose-workshop
# Just a running alpine linux
Docker-Compose workshop
## Start
docker-compose up -d
## Login
docker-compose exec jenkins sh
## Stop
docker-compose down

15
docker-compose.yaml Normal file
View File

@ -0,0 +1,15 @@
version: '3'
services:
jenkins:
image: jenkins/jenkins:2.244-alpine
privileged: true
user: root
ports:
- 8080:8080
- 8443:8443
- 50000:50000
volumes:
- ./jenkins:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- /usr/local/bin/docker:/usr/local/bin/docker