From 43c1cb6d9ad1329c5b90bec7e64e5e6d925d6ae4 Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Sun, 19 Jan 2025 20:08:58 +0100 Subject: [PATCH] Use proper filepaths for docker-compose --- cmd/backend/config.go | 2 +- docker-compose.yml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/backend/config.go b/cmd/backend/config.go index 7d55367..787e9f5 100644 --- a/cmd/backend/config.go +++ b/cmd/backend/config.go @@ -43,7 +43,7 @@ func newConfig() *Config { ConfigFile: "/etc/cpolis/config.toml", CookieExpiryHours: 24 * 30, DBName: "cpolis", - FirebaseKey: "/var/www/cpolis/serviceAccountKey.json", + FirebaseKey: "/etc/cpolis/serviceAccountKey.json", LogFile: "/var/log/cpolis.log", MaxBannerHeight: 1080, MaxBannerWidth: 1920, diff --git a/docker-compose.yml b/docker-compose.yml index 1c3e265..b6e62ff 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,8 @@ services: ports: - "1664:1664" 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 depends_on: - db @@ -19,4 +20,4 @@ services: ports: - "3306:3306" volumes: - - ./path/to/create_db.sql:/docker-entrypoint-initdb.d/create_db.sql + - ./create_db.sql:/docker-entrypoint-initdb.d/create_db.sql