mirror of
https://github.com/khuedoan/homelab.git
synced 2025-07-10 15:59:47 +07:00
Add paste bin service
This commit is contained in:
@ -31,3 +31,6 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
|
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
|
||||||
MYSQL_DATABASE: "gitea"
|
MYSQL_DATABASE: "gitea"
|
||||||
|
pastebin:
|
||||||
|
container_name: "khuedoan_pastebin"
|
||||||
|
build: ./pastebin/
|
||||||
|
@ -17,3 +17,13 @@ server {
|
|||||||
proxy_pass http://gitea:3000;
|
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
7
pastebin/Dockerfile
Normal 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" ]
|
Reference in New Issue
Block a user