diff options
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..77dfb90 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +# docker-compose.yml
+services:
+ jenkins:
+ build:
+ context: .
+ dockerfile: Dockerfile.jenkins
+ args:
+ # Pass the host's docker group ID to the build
+ DOCKER_GID: ${DOCKER_GID}
+ user: "${UID}:${GID}" # Run the container as the current host user
+ ports:
+ - "8080:8080"
+ - "50000:50000"
+ container_name: jenkins
+ volumes:
+ - ./jenkins_home:/var/jenkins_home
+ - /var/run/docker.sock:/var/run/docker.sock
|
