Skip to content

Failed to connect database #5

@Akibalogh

Description

@Akibalogh

Me again.. any advice for why I can't find the database this time?

aki-macbook-pro:meetrics akibalogh$ docker run --rm -e DB_HOST="host.docker.internal" -v `pwd`:/app chasdevs/meetrics | tee out.log
time="2020-04-16T21:47:17Z" level=info msg="Environment: development\n"
panic: failed to connect database

goroutine 1 [running]:
github.com/chasdevs/meetrics/pkg/data.Init()
	/app/pkg/data/data.go:35 +0x18c
main.init.0()
	/app/main.go:27 +0x2e

I can run docker-compose up -d mysql but not the go program

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions