Use proper filepaths for docker-compose
This commit is contained in:
parent
9feb16a8d8
commit
43c1cb6d9a
@ -43,7 +43,7 @@ func newConfig() *Config {
|
|||||||
ConfigFile: "/etc/cpolis/config.toml",
|
ConfigFile: "/etc/cpolis/config.toml",
|
||||||
CookieExpiryHours: 24 * 30,
|
CookieExpiryHours: 24 * 30,
|
||||||
DBName: "cpolis",
|
DBName: "cpolis",
|
||||||
FirebaseKey: "/var/www/cpolis/serviceAccountKey.json",
|
FirebaseKey: "/etc/cpolis/serviceAccountKey.json",
|
||||||
LogFile: "/var/log/cpolis.log",
|
LogFile: "/var/log/cpolis.log",
|
||||||
MaxBannerHeight: 1080,
|
MaxBannerHeight: 1080,
|
||||||
MaxBannerWidth: 1920,
|
MaxBannerWidth: 1920,
|
||||||
|
@ -4,7 +4,8 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "1664:1664"
|
- "1664:1664"
|
||||||
volumes:
|
volumes:
|
||||||
- /path/to/serviceAccountKey.json:/var/www/cpolis/serviceAccountKey.json
|
- /etc/cpolis/config.toml:/etc/cpolis/config.toml
|
||||||
|
- /etc/cpolis/serviceAccountKey.json:/etc/cpolis/serviceAccountKey.json
|
||||||
- /var/log/cpolis.log:/var/log/cpolis.log
|
- /var/log/cpolis.log:/var/log/cpolis.log
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
@ -19,4 +20,4 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "3306:3306"
|
- "3306:3306"
|
||||||
volumes:
|
volumes:
|
||||||
- ./path/to/create_db.sql:/docker-entrypoint-initdb.d/create_db.sql
|
- ./create_db.sql:/docker-entrypoint-initdb.d/create_db.sql
|
||||||
|
Loading…
x
Reference in New Issue
Block a user