- Create a
.envfile or set the environment variables:DB_HOST,DB_USER,DB_PASSWORD,DB_NAME,DB_PORT,SERVER_PORT - Build and run using
docker-compose:
docker-compose upThe project uses Docker volumes to cache Go compilation artifacts between container rebuilds, significantly speeding up subsequent builds:
go-build-cache: Stores compiled packages and build cachego-mod-cache: Stores downloaded Go modules
These volumes are automatically created and managed by Docker Compose. To clear the cache if needed run this:
docker volume rm bbbab_messenger_go-build-cache bbbab_messenger_go-mod-cacheSwagger docs are available at /swagger