Merge pull request #1948 from ywk253100/170406_secretkey

Mount config to another dir, fix #1939
This commit is contained in:
Daniel Jiang 2017-04-07 11:35:58 +08:00 committed by GitHub
commit 93f5c78b4b
4 changed files with 6 additions and 6 deletions

View File

@ -48,7 +48,7 @@ services:
- ../common/config/adminserver/env
restart: always
volumes:
- /data/config/:/etc/adminserver/
- /data/config/:/etc/adminserver/config/
- /data/secretkey:/etc/adminserver/key
- /data/:/data/
depends_on:

View File

@ -54,9 +54,9 @@ services:
- ./common/config/adminserver/env
restart: always
volumes:
- /data/config/:/etc/adminserver/
- /data/secretkey:/etc/adminserver/key
- /data/:/data/
- /data/config/:/etc/adminserver/config/:z
- /data/secretkey:/etc/adminserver/key:z
- /data/:/data/:z
networks:
- harbor
depends_on:

View File

@ -31,7 +31,7 @@ import (
)
const (
defaultJSONCfgStorePath string = "/etc/adminserver/config.json"
defaultJSONCfgStorePath string = "/etc/adminserver/config/config.json"
defaultKeyPath string = "/etc/adminserver/key"
)

View File

@ -29,7 +29,7 @@ services:
- ./common/config/adminserver/env
restart: always
volumes:
- /data/config/:/etc/adminserver/
- /data/config/:/etc/adminserver/config/
- /data/secretkey:/etc/adminserver/key
- /data/:/data/
ports: