mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-24 01:36:10 +07:00
Add paste bin service
This commit is contained in:
parent
4964f7f6ea
commit
47e8b8ecfb
@ -31,3 +31,6 @@ services:
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
|
||||
MYSQL_DATABASE: "gitea"
|
||||
pastebin:
|
||||
container_name: "khuedoan_pastebin"
|
||||
build: ./pastebin/
|
||||
|
@ -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
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" ]
|
Loading…
Reference in New Issue
Block a user