Add paste bin service

This commit is contained in:
Khue Doan 2020-06-26 14:51:53 +07:00
parent 4964f7f6ea
commit 47e8b8ecfb
3 changed files with 20 additions and 0 deletions

View File

@ -31,3 +31,6 @@ services:
environment:
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
MYSQL_DATABASE: "gitea"
pastebin:
container_name: "khuedoan_pastebin"
build: ./pastebin/

View File

@ -17,3 +17,13 @@ server {
proxy_pass http://gitea:3000;
}
}
server {
listen 80;
listen [::]:80;
server_name pastebin.khuedoan.com;
location / {
proxy_pass http://pastebin:8000;
}
}

7
pastebin/Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM alpine:3.12.0
ADD https://github.com/w4/bin/releases/download/v1.0.3/bin-v1.0.3-x86_64-unknown-linux-musl.tar.gz /tmp/
RUN tar -xvzf /tmp/bin-*.tar.gz -C /usr/local/bin/ && rm /tmp/bin-*.tar.gz
CMD [ "bin" ]