Skip to content

Instantly share code, notes, and snippets.

@lynsei
Created October 31, 2016 20:10
Show Gist options
  • Select an option

  • Save lynsei/b62859a71e381f1bd7f029b3587e301d to your computer and use it in GitHub Desktop.

Select an option

Save lynsei/b62859a71e381f1bd7f029b3587e301d to your computer and use it in GitHub Desktop.
docker-composed ssh gitway with gerrit
ssh-gitway:
image: segfly/ssh-gitway
cap_drop:
- ALL
cap_add:
- SYS_CHROOT
- SETGID
- SETUID
- CHOWN
volumes:
- gitway-ssh:/etc/ssh
environment:
TARGET_SSH_PORT: 2022
ports:
- '22:2022'
links:
- sample-gerrit1:team1
- sample-gerrit2:team2
sample-gerrit1:
image: openfrontier/gerrit:latest
ports:
- '8085:8080'
expose:
- '29418'
sample-gerrit2:
image: openfrontier/gerrit:latest
ports:
- '8086:8080'
expose:
- '29418'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment