1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

get rid of bind volumes as they do not work for deployments on remote Docker daemons

This commit is contained in:
Steffen Vogel 2017-07-22 05:00:32 +02:00
parent 09bf7f1b38
commit 063e91522f
3 changed files with 23 additions and 16 deletions

3
Dockerfile.nginx Normal file
View file

@ -0,0 +1,3 @@
FROM nginx:stable-alpine
COPY etc/nginx/villas.conf /etc/nginx/conf.d/default.conf

3
Dockerfile.node Normal file
View file

@ -0,0 +1,3 @@
FROM villas/node:latest
COPY etc/node/*.conf /etc/villas/node/

View file

@ -17,12 +17,12 @@ services:
command: "/bin/true"
nginx:
image: nginx:stable-alpine
build:
context: .
dockerfile: Dockerfile.nginx
ports:
- "80:80"
- "443:443"
volumes:
- "./etc/nginx/villas.conf:/etc/nginx/conf.d/default.conf"
volumes_from:
- frontend
networks:
@ -51,23 +51,24 @@ services:
villas:
# AMQP broker for VILLAScontroller
broker:
image: rabbitmq:management
environment:
RABBITMQ_DEFAULT_USER: "villas"
RABBITMQ_DEFAULT_PASS: "s3c0sim4!"
ports:
- "8080:15672"
- "5672:5672"
networks:
villas:
# broker:
# image: rabbitmq:management
# environment:
# RABBITMQ_DEFAULT_USER: "villas"
# RABBITMQ_DEFAULT_PASS: "s3c0sim4!"
# ports:
# - "8080:15672"
# - "5672:5672"
# networks:
# villas:
# VILLASnode, the gateway between UDP and WebSocket traffic
node:
image: villas/node:latest
build:
context: .
dockerfile: Dockerfile.node
privileged: true
restart: always
command: node /etc/villas/node/websocket-demo.conf
volumes:
- "./etc/node/:/etc/villas/node/"
networks:
villas: