mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
mount config to another dir, fix #1939
This commit is contained in:
parent
d8a0e01214
commit
e60fd0530f
@ -48,7 +48,7 @@ services:
|
|||||||
- ../common/config/adminserver/env
|
- ../common/config/adminserver/env
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- /data/config/:/etc/adminserver/
|
- /data/config/:/etc/adminserver/config/
|
||||||
- /data/secretkey:/etc/adminserver/key
|
- /data/secretkey:/etc/adminserver/key
|
||||||
- /data/:/data/
|
- /data/:/data/
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -54,9 +54,9 @@ services:
|
|||||||
- ./common/config/adminserver/env
|
- ./common/config/adminserver/env
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- /data/config/:/etc/adminserver/
|
- /data/config/:/etc/adminserver/config/:z
|
||||||
- /data/secretkey:/etc/adminserver/key
|
- /data/secretkey:/etc/adminserver/key:z
|
||||||
- /data/:/data/
|
- /data/:/data/:z
|
||||||
networks:
|
networks:
|
||||||
- harbor
|
- harbor
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -31,7 +31,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
defaultJSONCfgStorePath string = "/etc/adminserver/config.json"
|
defaultJSONCfgStorePath string = "/etc/adminserver/config/config.json"
|
||||||
defaultKeyPath string = "/etc/adminserver/key"
|
defaultKeyPath string = "/etc/adminserver/key"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ services:
|
|||||||
- ./common/config/adminserver/env
|
- ./common/config/adminserver/env
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- /data/config/:/etc/adminserver/
|
- /data/config/:/etc/adminserver/config/
|
||||||
- /data/secretkey:/etc/adminserver/key
|
- /data/secretkey:/etc/adminserver/key
|
||||||
- /data/:/data/
|
- /data/:/data/
|
||||||
ports:
|
ports:
|
||||||
|
Loading…
Reference in New Issue
Block a user