【转载】Docker搭建MicroBin

Last updated on March 19, 2024 pm

1
2
mkdir -p ~/app/MicroBin && cd ~/app/MicroBin && nano docker-compose.yml
sudo docker-compose up -d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
version: '3.5'

services:
microbin:
image: danielszabo99/microbin:latest
container_name: microbin
restart: unless-stopped
environment:
- TZ=Asia/Shanghai
- MICROBIN_HIGHLIGHTSYNTAX=true
- MICROBIN_HASH_IDS=true
- MICROBIN_EDITABLE=false
- MICROBIN_PRIVATE=false
- MICROBIN_HIDE_FOOTER=true
- MICROBIN_HELP=true
- MICROBIN_HIDE_HEADER=true
- MICROBIN_HIDE_LOGO=true
- MICROBIN_NO_ETERNAL_PASTA=false
- MICROBIN_NO_FILE_UPLOAD=true
- MICROBIN_NO_LISTING=true
- MICROBIN_THREADS=1
- MICROBIN_TITLE=free-bin
- MICROBIN_PUBLIC_PATH=https://paste.limour.top/ # 记得改成自己的网址
- MICROBIN_QR=true
ports:
- 18083:8080 # 冒号左边可以改成自己需要的端口号
volumes:
- ./microbin-data:/app/pasta_data # 冒号左边可以改自己想要的挂载路径

【转载】Docker搭建MicroBin
https://hexo.limour.top/Docker-da-jian-MicroBin
Author
Limour
Posted on
January 13, 2023
Updated on
March 19, 2024
Licensed under