增加docker相关配置
This commit is contained in:
parent
2bbb27475f
commit
c916cb2146
@ -2,15 +2,16 @@ version: '3.8'
|
||||
|
||||
services:
|
||||
squid-ui:
|
||||
build: .
|
||||
image: squid-ui:latest # 使用预先构建的镜像名称
|
||||
container_name: squid-ui
|
||||
ports:
|
||||
- "51823:8080"
|
||||
environment:
|
||||
- SQUID_PASSWORD=Sqd123
|
||||
- SQUID_PASSWORD=Sqd123 # 建议通过环境变量文件或Docker secrets管理密码
|
||||
volumes:
|
||||
- ./config/squid_passwd:/app/config/squid_passwd:rw
|
||||
- ./templates:/app/templates
|
||||
# 如果模板文件需要动态修改,可以挂载模板目录
|
||||
# - ./templates:/app/templates
|
||||
restart: always
|
||||
|
||||
squid:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user