Skip to content

Commit

Permalink
Merge branch 'master' of github.com:MetaMask/mustekala
Browse files Browse the repository at this point in the history
  • Loading branch information
Herman Junge committed Aug 22, 2018
2 parents 613484f + 0b1ecfa commit b948383
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 66 deletions.
27 changes: 0 additions & 27 deletions docker/rendezvous/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,3 @@
nginx-proxy:
build: ./nginx-proxy/.
container_name: nginx-proxy
restart: always
ports:
# 80 should be open to the internet for letsencrypt purposes
- "80:80"
# 443 should be open to the internet for wss
- "443:443"
volumes:
- /home/core/ssl-certs:/etc/nginx/certs:ro
- /etc/nginx/vhost.d
- /usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
environment:
DEFAULT_HOST: "kitsunet.metamask.io"

letsencrypt-nginx-proxy-companion:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: letsencrypt-nginx-proxy-companion
restart: always
volumes_from:
- nginx-proxy
volumes:
- /home/core/ssl-certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro

ipfs-rendezvous-experiment:
image: dryajov/ipfs-rendezvous-experiment
restart: always
Expand Down
23 changes: 23 additions & 0 deletions docker/telemetry/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ../../../volumes/proxy/certs:/etc/nginx/certs:ro
- /etc/nginx/vhost.d
- /usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro

letsencrypt-nginx-proxy-companion:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: letsencrypt-nginx-proxy-companion
restart: always
volumes_from:
- nginx-proxy
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "../../../volumes/proxy/certs:/etc/nginx/certs:rw"

44 changes: 6 additions & 38 deletions docker/webrtc-star/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,15 @@
nginx-proxy:
build: ./nginx-proxy/.
container_name: nginx-proxy
restart: always
ports:
# 80 should be open to the internet for letsencrypt purposes
- "80:80"
# 443 should be open to the internet for wss
- "443:443"
volumes:
- /home/core/ssl-certs:/etc/nginx/certs:ro
- /etc/nginx/vhost.d
- /usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
environment:
DEFAULT_HOST: "kitsunet.metamask.io"

letsencrypt-nginx-proxy-companion:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: letsencrypt-nginx-proxy-companion
restart: always
volumes_from:
- nginx-proxy
volumes:
- /home/core/ssl-certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro

ipfs-rendezvous-experiment:
build: ./signaler/.
webrtc-star-signaller:
build: ./signaller/.
container_name: webrtc-star
restart: always
expose:
# This port is the one that nginx-proxy container will use to redirect calls
# Has to be represented in the environment variable VIRTUAL_PORT below
- "9090"
ports:
- "9090:9090"
- "9090"
ulimits:
nofile:
soft: 20000
hard: 40000
environment:
VIRTUAL_HOST: "${HOSTNAME}.kitsunet.metamask.io"
VIRTUAL_PORT: "9090"
LETSENCRYPT_HOST: "${HOSTNAME}.kitsunet.metamask.io"
LETSENCRYPT_EMAIL: "herman.junge@consensys.net"

VIRTUAL_HOST: "signaller.lab.metamask.io"
LETSENCRYPT_HOST: "signaller.lab.metamask.io"
LETSENCRYPT_EMAIL: "admin@metamask.io"
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ run npm init -y
RUN npm install libp2p-webrtc-star

# start server
CMD npx star-signal --port=9090 --host=127.0.0.1
CMD npx star-signal --port=9090 --host=0.0.0.0

# expose server
EXPOSE 9090

0 comments on commit b948383

Please sign in to comment.