aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: 0cccadc0a6b1e729d7783df70b52a808672044aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# docker-compose.yml
services:
  jenkins:
    build:
      context: .
      dockerfile: Dockerfile.jenkins
      args:
        # Pass all necessary host IDs to the build
        UID: ${UID}
        GID: ${GID}
        DOCKER_GID: ${DOCKER_GID}
    ports:
      - "8080:8080"
      - "50000:50000"
    container_name: jenkins
    volumes:
      - ./jenkins_home:/var/jenkins_home
      - /var/run/docker.sock:/var/run/docker.sock