Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rafaelnize/3fd3c9d8ba729959adf079f27c83b081 to your computer and use it in GitHub Desktop.
Save rafaelnize/3fd3c9d8ba729959adf079f27c83b081 to your computer and use it in GitHub Desktop.
docker-compose
version: "3"
services:
baseimage:
build:
context: ./baseimage
dockerfile: Dockerfile-base
gitserver:
image: gogs/gogs
volumes:
- "./gitserver_data:/data"
ports:
- "10022:22"
- "3000:3000"
jenkins:
build:
context: ./jenkins_setup
dockerfile: Dockerfile
volumes:
- "./jenkins_data:/var/jenkins_home"
environment:
- JENKINS_PORT="8080"
ports:
- "8080:8080"
- "50000:50000"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment