Newer
Older
jenkins / docker-compose.yml
version: "2.1"

services:
  master-jenkins:
    image: jenkins:alpine
    mem_limit: 2g
    environment:
      - JAVA_OPTS="-Djava.util.logging.config.file=/var/jenkins_home/log.properties"
    volumes:
      - ./data:/var/jenkins_home
    restart: always
    ports:
      - "${HTTP_BIND:-127.0.0.1}:${HTTP_PORT:-8080}:8080"
      - "${API_BIND:-127.0.0.1}:${API_PORT:-50000}:50000"