Commit e42e97a2 authored by Mike Jones's avatar Mike Jones 🌶

Changes to Docker setup, installation example

parent 00ed2b0e
*.db
.idea
.env
docker-compose.yml
......@@ -20,5 +20,6 @@ RUN chmod +x /opt/modlastfm
FROM scratch
COPY --from=builder /opt /opt
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT ["/opt/modlastfm"]
# stella-irc lastfm module
## Installation
### With Docker Compose
Example docker-compose.yml:
```
version: "2"
services:
modlastfm:
build: .
volumes:
- ./lastfm.db:/lastfm.db
environment:
- LASTFM_API_KEY="APIKEYHERE"
- LASTFM_API_SECRET="APISECRETHERE"
command: /opt/modlastfm
```
\ No newline at end of file
......@@ -27,7 +27,11 @@ func NewConfig() *Config {
}
if c.APIKey == "" {
log.Fatal("A Last.FM API key is required")
log.Fatalf("A Last.FM API key is required (%s)", apiKeyKey)
}
if c.APISecret == "" {
log.Fatalf("A Last.FM API secret is required (%s)", apiSecretKey)
}
if c.DBPath == "" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment