initial commit
This commit is contained in:
commit
ca9f88414c
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "mumble-web"]
|
||||
path = mumble-web
|
||||
url = https://github.com/Johni0702/mumble-web
|
40
Dockerfile
Normal file
40
Dockerfile
Normal file
@ -0,0 +1,40 @@
|
||||
FROM alpine:edge
|
||||
|
||||
LABEL maintainer="Andreas Peters <support@aventer.biz>"
|
||||
|
||||
ARG DOMAIN "localhost:8080"
|
||||
|
||||
COPY ./mumble-web /home/node
|
||||
|
||||
RUN echo http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
|
||||
echo http://dl-cdn.alpinelinux.org/alpine/v3.14/main >> /etc/apk/repositories && \
|
||||
apk add --no-cache git nodejs=14.20.1-r0 npm tini websockify openssl && \
|
||||
adduser -D -g 1001 -u 1001 -h /home/node node && \
|
||||
mkdir -p /home/node && \
|
||||
mkdir -p /home/node/.npm-global && \
|
||||
mkdir -p /home/node/app && \
|
||||
chown -R node: /home/node
|
||||
|
||||
RUN openssl req -new -x509 -days 365 -nodes -out /self.pem -keyout /self.pem -subj "/CN=${DOMAIN}" && chmod +r /self.pem
|
||||
|
||||
USER node
|
||||
|
||||
ENV PATH=/home/node/.npm-global/bin:$PATH
|
||||
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
|
||||
|
||||
RUN cd /home/node && \
|
||||
npm install && \
|
||||
npm run build
|
||||
|
||||
USER root
|
||||
|
||||
RUN apk del gcc git
|
||||
|
||||
USER node
|
||||
|
||||
EXPOSE 8080
|
||||
ENV MUMBLE_SERVER=mumble.aventer.biz:64738
|
||||
|
||||
ENTRYPOINT ["/sbin/tini", "--"]
|
||||
CMD websockify --ssl-target --web=/home/node/dist 8080 "$MUMBLE_SERVER"
|
||||
|
29
README.md
Normal file
29
README.md
Normal file
@ -0,0 +1,29 @@
|
||||
# Docker Mumble Web
|
||||
|
||||
## Simple `docker compose` project to build and run two containers, [mumble-web](https://github.com/Johni0702/mumble-web) and [mumble-server](https://hub.docker.com/r/mumblevoip/mumble-server)
|
||||
|
||||
## Build
|
||||
|
||||
```
|
||||
Edit Dockerfile and write your DOMAIN variable
|
||||
|
||||
$ docker-compose build && docker-compose pull
|
||||
```
|
||||
|
||||
## Run
|
||||
|
||||
```
|
||||
$ docker-compose up -d
|
||||
|
||||
Join to https://localhost:8080/
|
||||
|
||||
Mumble server config is in the local ./data folder
|
||||
```
|
||||
|
||||
![login](image.png)
|
||||
|
||||
## License
|
||||
|
||||
```
|
||||
MIT
|
||||
```
|
33
docker-compose.yml
Normal file
33
docker-compose.yml
Normal file
@ -0,0 +1,33 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
mumble-server:
|
||||
image: mumblevoip/mumble-server
|
||||
restart: always
|
||||
hostname: muble-server
|
||||
container_name: muble-server
|
||||
environment:
|
||||
- MUMBLE_SUPERUSER_PASSWORD=password
|
||||
volumes:
|
||||
- ./data:/data
|
||||
expose:
|
||||
- "64738"
|
||||
- "64738/udp"
|
||||
networks:
|
||||
mumble-net:
|
||||
|
||||
mumble-web:
|
||||
build: ./
|
||||
image: mumble-web
|
||||
restart: always
|
||||
hostname: mumble-web
|
||||
container_name: mumble-web
|
||||
environment:
|
||||
- MUMBLE_SERVER=mumble-server:64738
|
||||
ports:
|
||||
- 8080:8080
|
||||
networks:
|
||||
mumble-net:
|
||||
|
||||
networks:
|
||||
mumble-net:
|
1
mumble-web
Submodule
1
mumble-web
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 4ef594c8a097d180700d22d91e9a7fea3bab08ac
|
Loading…
Reference in New Issue
Block a user