Added config to docker impl and tested with changed vars. No perserved config yet

main
Keegan 2 years ago
parent b52f243605
commit f404056bd2

@ -4,6 +4,8 @@
!cmd/reactor/main.go
!internal
!tokens
!configs
!*.yaml
!go.mod
!go.sum
!server

@ -12,6 +12,7 @@ RUN CGO_ENABLED=0 go build -o /server ./cmd/server/main.go
FROM alpine
COPY --from=builder /server .
COPY --from=builder /app/internal/configs/ ./configs
COPY --from=builder /app/tokens/ ./tokens
EXPOSE 2022

@ -43,7 +43,7 @@ func Load(fname string) {
viper.SetConfigName(fname)
viper.SetConfigType("yaml")
viper.AddConfigPath("./configs")
viper.AddConfigPath("../../internal/configs")
//viper.AddConfigPath("../../internal/configs")
// defaults
viper.SetDefault("server.db-org", "ForeLight")
viper.SetDefault("server.db-url", "http://192.168.100.2:8086")

Loading…
Cancel
Save