jenkins-run/docker-compose.yaml

29 lines
490 B
YAML

version: '3.8'
networks:
jenkins:
external: true
services:
jenkins:
build: ./build/controller/
networks:
- jenkins
privileged: true
user: root
ports:
- 9000:8080
- 50000:50000
container_name: jenkins
volumes:
- ./jenkins_home:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- DOCKER_HOST=host-gateway
restart: always