Add Makefile and docker-compose v3

This commit is contained in:
Christophe Mehay 2017-08-21 09:29:49 +02:00
parent f206ea354c
commit 3ee624d910
6 changed files with 102 additions and 1 deletions

53
docker-compose.v3.yml Normal file
View file

@ -0,0 +1,53 @@
# docker version 3 example
version: "3.1"
services:
tor:
image: goldy/tor-hidden-service
build: .
links:
- hello
- world
- again
environment:
# Set mapping ports
HELLO_PORTS: 80:80,800:80,8888:80
WORLD_PORTS: 8000:80
AGAIN_PORTS: 88:80
# hello and again will share the same onion_adress
AGAIN_SERVICE_NAME: foo
HELLO_SERVICE_NAME: foo
# Keep keys in volumes
volumes:
- tor-keys:/var/lib/tor/hidden_service/
# Set secret for key, use the same name as the service
secrets:
- source: foo
target: foo
mode: 0400
hello:
image: tutum/hello-world
hostname: hello
world:
image: tutum/hello-world
hostname: world
again:
image: tutum/hello-world
hostname: again
volumes:
tor-keys:
driver: local
secrets:
foo:
file: ./foo_private_key