更新Docker配置,使用Docker卷代替绑定挂载
This commit is contained in:
parent
88f08dcc4d
commit
869f175043
@ -16,8 +16,7 @@ services:
|
|||||||
- GITEA__server__ROOT_URL=https://gitea.mzh.one/
|
- GITEA__server__ROOT_URL=https://gitea.mzh.one/
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/gitea:/data
|
- gitea-data:/data
|
||||||
- ./conf/gitea/app.ini:/data/gitea/conf/app.ini:ro
|
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
ports:
|
ports:
|
||||||
@ -32,3 +31,6 @@ networks:
|
|||||||
driver: bridge
|
driver: bridge
|
||||||
dnmp_default:
|
dnmp_default:
|
||||||
external: true # 使用已有的DNMP网络
|
external: true # 使用已有的DNMP网络
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
gitea-data:
|
||||||
Loading…
x
Reference in New Issue
Block a user