---
title: "Discussion on \"Modern API design with Golang, PostgreSQL and Docker\" | Hashnode"
description: "Discussion on \"Modern API design with Golang, PostgreSQL and Docker\". organize your containers with Docker Compose and use CURL to make requests"
url: "https://hashnode.com/posts/modern-api-design-with-golang-postgresql-and-docker/637b2c67a60bf3b75346af09"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Modern API design with Golang, PostgreSQL and Docker](https://bognov.tech/modern-api-design-with-golang-postgresql-and-docker?utm_source=hashnode&utm_medium=feed)

organize your containers with Docker Compose and use CURL to make requests

Nov 21, 2022 · 17 min read · bognov.tech  
Read the article

-   [#go](https://hashnode.com/tag/go)
-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#docker](https://hashnode.com/tag/docker)
-   [#apis](https://hashnode.com/tag/apis)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)

## Written by

[Bogdan N.](https://hashnode.com/@bog)

@bog · Spain

  
[View profile](https://hashnode.com/@bog)

software engineer

Full Stack Software Engineer, trying to improve one line of code at a time.

## Responses 1

Markdown supported · ⌘↵ to post

[Satria H R Harsono](https://hashnode.com/@satriahrh)

[Nov 22, 2022](https://hashnode.com/posts/modern-api-design-with-golang-postgresql-and-docker/637b2c67a60bf3b75346af09/comment/637c261c698c50b963506ceb)

Don't you consider to follow clean architecture? The way you instantiate the pgdb then passing it to model is a bit daunting

[Bogdan N.](https://hashnode.com/@bog)

[Nov 22, 2022](https://hashnode.com/posts/modern-api-design-with-golang-postgresql-and-docker/637b2c67a60bf3b75346af09/comment/637c261c698c50b963506ceb#reply-637c74092c7f04bb5bdbc1af)

Sure, some people have mentioned it and there's a discussion about my article in this reddit thread that can be pretty helpful for anyone who wants to dig in deeper: [reddit.com/r/golang/comments/z0t2qc/modern\_api\_de…](https://www.reddit.com/r/golang/comments/z0t2qc/modern_api_design_with_golang_postgresql_and/)
