Parse multiple ports from environment

This commit is contained in:
Christophe Mehay 2017-02-09 09:39:02 +01:00
parent f5b25abd3c
commit 3843fe5bd3
5 changed files with 17 additions and 11 deletions

View file

@ -11,7 +11,7 @@ services:
- world
environment:
# Set mapping ports
HELLO_PORTS: 80:80
HELLO_PORTS: 80:80,800:80,8888:80
# Set private key
HELLO_KEY: |
-----BEGIN RSA PRIVATE KEY-----
@ -34,7 +34,7 @@ services:
# Keep keys in volumes
volumes:
- ./keys:/var/lib/tor/hidden_service/
- tor-keys:/var/lib/tor/hidden_service/
hello:
image: tutum/hello-world
@ -43,3 +43,7 @@ services:
world:
image: tutum/hello-world
hostname: world
volumes:
tor-keys:
driver: local