mirror of
https://github.com/cupcakearmy/dvb.git
synced 2024-12-22 08:06:30 +00:00
100% dockerized
This commit is contained in:
parent
f362c5770d
commit
7b7c95c17a
9
cache/docker-compose.yml
vendored
9
cache/docker-compose.yml
vendored
@ -1,9 +0,0 @@
|
||||
version: "3.5"
|
||||
|
||||
services:
|
||||
cache:
|
||||
build: .
|
||||
user: nobody
|
||||
ports:
|
||||
- 8000:8000
|
||||
restart: always
|
8
cache/dockerfile
vendored
8
cache/dockerfile
vendored
@ -1,8 +0,0 @@
|
||||
FROM node:alpine
|
||||
|
||||
WORKDIR /app
|
||||
USER nobody
|
||||
COPY ./app.js ./.key ./
|
||||
|
||||
ENTRYPOINT [ "node" ]
|
||||
CMD [ "app.js" ]
|
36
docker-compose.yml
Normal file
36
docker-compose.yml
Normal file
@ -0,0 +1,36 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
frontend:
|
||||
image: nginx:alpine
|
||||
restart: always
|
||||
ports:
|
||||
- 80:80
|
||||
volumes:
|
||||
- ./app:/srv
|
||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
networks:
|
||||
- dvb
|
||||
- traefik
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.port=80
|
||||
- traefik.backend=dvb
|
||||
- traefik.frontend.rule=Host:wundtstr.club
|
||||
|
||||
cache:
|
||||
image: node:alpine
|
||||
command: node /app.js
|
||||
volumes:
|
||||
- ./cache/app.js:/app.js
|
||||
- ./cache/.key:/.key
|
||||
ports:
|
||||
- 8000
|
||||
networks:
|
||||
- dvb
|
||||
restart: always
|
||||
|
||||
networks:
|
||||
dvb:
|
||||
traefik:
|
||||
external: true
|
14
nginx.conf
Normal file
14
nginx.conf
Normal file
@ -0,0 +1,14 @@
|
||||
server{
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
location / {
|
||||
root /srv;
|
||||
# Activate the next line if you want to list files
|
||||
# autoindex on;
|
||||
}
|
||||
|
||||
location /cache/ {
|
||||
proxy_pass http://cache:8000/;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user