- Virtualbox
- Vagrant
- Download this Gist as a zipfile
- Run
vagrant up
to create and provision a new box
version: "3" | |
services: | |
tor-router: | |
container_name: tor-router | |
image: jess/tor-router:latest | |
network_mode: host | |
onion: | |
image: jess/onion:latest |
#!/bin/bash | |
# clean not running containers | |
LIST_STATUS="created restarting removing paused exited dead" | |
for status_element in $LIST_STATUS | |
do | |
for container in $(/usr/bin/docker ps -aq -f status=$status_element) | |
do | |
echo "`date '+[%Y-%m-%d %H:%M:%S]'` gracefully eliminating container ${container}" | |
/usr/bin/docker rm $container |
# make sure volumes exist before starting this | |
# mkdir -p {jenkins/volumes/var/jenkins_home,artifactory} | |
jenkins: | |
image: jenkins/jenkins:2.84 | |
restart: always | |
ports: | |
- "80:8080" | |
- "50000:50000" | |
volumes: | |
- ./jenkins/volumes/var/jenkins_home:/var/jenkins_home |
registry: | |
image: registry:2.6.1 | |
restart: always | |
ports: | |
- "5000:5000" | |
environment: | |
REGISTRY_HTTP_TLS_CERTIFICATE: /certs/live/domain.address.com/fullchain.pem | |
REGISTRY_HTTP_TLS_KEY: /certs/live/domain.address.com/privkey.pem | |
REGISTRY_STORAGE_DELETE_ENABLED: "true" | |
volumes: |
.vagrant/ | |
tmp/ |