Getting Started with Docker Compose For Go Applications

  Рет қаралды 19,398

TutorialEdge

TutorialEdge

3 жыл бұрын

👨‍💻 For the price of a ☕ every month, sign up and gain access to a growing list of premium courses on my site - tutorialedge.net/pricing/
✅ Subscribe and hit that 🔔 to get notified for all the latest tutorials!
🤓 / elliot_f
‎💻 tutorialedge.net
🎥 Recording Setup
Microphone - amzn.to/3hvASys
Mic Boom - amzn.to/3o0cW8Q
Mouse - amzn.to/2WZMoZs
Monitor 1 - amzn.to/38IUlYy
Monitor 2 - amzn.to/3rBTZf7
Mount - amzn.to/3o3185V
USB-C Hub - amzn.to/3o2xRbw

Пікірлер: 16
@tomontheinternet
@tomontheinternet 3 жыл бұрын
Nice video. Straight to the point.
@georgelza
@georgelza 3 жыл бұрын
any chance you can share all the code from the example, the app and the accompanying docker file and docker-compose file, as a template to start from.
@BabaykaMoscow
@BabaykaMoscow 2 жыл бұрын
Hi, Elliot! Could you please explain why do you use a two-stage build? If you built your app at the first stage, why do you need the second one? If you need the second one, why do you need to install go inside the final image as app is already compiled and could be executed without installing it? Thanks!
@niteeshdubey1421
@niteeshdubey1421 3 жыл бұрын
Hey Elliot, I just want to ask that can we connect multiple micro services with a single mysql database ....and for this can we use docker-compose or there is some any other better Method ....to implement this ??
@Tutorialedge
@Tutorialedge 3 жыл бұрын
Hi Niteesh, typically for your microservices, you want to have 1 database instance per microservice. There are a lot of advantages to this approach in terms of improved resiliency, simplicity etc. It's also better to use a managed database service to run your databases when you are relying on them in production. Running databases locally with docker-compose is typically better suited for your integration testing and for data that you don't necessarily care about if it gets lost. I hope this helps!
@niteeshdubey1421
@niteeshdubey1421 3 жыл бұрын
@@Tutorialedge Iam using droplets for docker....so can I run MySQL container inside the droplet to store the data ...?? My another question is that ,you have said, "1 database instance per Microservices" but if I want to follow the relational model then this approach will be good ??
@niteeshdubey1421
@niteeshdubey1421 3 жыл бұрын
Thankuu for replying me 😄
@amalshaji
@amalshaji 3 жыл бұрын
great video. One question, why not FiberV2?
@Tutorialedge
@Tutorialedge 3 жыл бұрын
Hey Amal! I should have used v2 here, but in fairness the Go application was an arbitrary example that I needed to create in order to highlight how you could use Docker-compose for your Go apps. I hope this helps :)
@cyberbitgame6240
@cyberbitgame6240 3 жыл бұрын
Hi Elliot! I have one doubt. Is it possible to create multiple network for multiple containers like in case of microservices.
@Tutorialedge
@Tutorialedge 3 жыл бұрын
Hi Cyberbit, so you may be able to create multiple networks for these things in docker compose, however this isn't the approach that you should take for production applications. When developing production systems, you would typically rely on something like Kubernetes with Istio to manage the networking between your multiple microservices. These are specialised tools that give you the option to define fine-grained networking rules that can seriously improve the security of your services. I will be doing a premium course on Kubernetes in the near future on my site so stay tuned!
@cyberbitgame6240
@cyberbitgame6240 3 жыл бұрын
@@Tutorialedge Thanks Eliot for explaining it. A course, Yes, that would be great. Looking forward to it. 👍
@johannessvensson4457
@johannessvensson4457 3 жыл бұрын
Hey Elliot! I have a question, I see that you mostly use vscode for Go, what Go extensions do you use?:)
@jatinoham
@jatinoham 3 жыл бұрын
Go extension by google
@gcxs
@gcxs 3 жыл бұрын
Click that Analysis Tool Missing
@0b1w4n
@0b1w4n 3 жыл бұрын
Nice video! I use an adapted version of laradock for go development github.com/sanchezcl/godock
Getting Started with ImmuDB in Go
12:27
TutorialEdge
Рет қаралды 3,7 М.
The TRUTH About Golang Backend Frameworks
6:31
Melkey
Рет қаралды 108 М.
No empty
00:35
Mamasoboliha
Рет қаралды 9 МЛН
Mama vs Son vs Daddy 😭🤣
00:13
DADDYSON SHOW
Рет қаралды 46 МЛН
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 97 МЛН
Женская драка в Кызылорде
00:53
AIRAN
Рет қаралды 505 М.
1 million DB records with Golang, Postgres, Docker, RabbitMQ
6:51
Golang Microservices: Using Docker for Containerization
19:41
Mario Carrion
Рет қаралды 4,8 М.
Getting Started with Generics in Go
13:12
TutorialEdge
Рет қаралды 27 М.
Ultimate Docker Compose Tutorial
1:03:14
TechWorld with Nana
Рет қаралды 157 М.
Understanding Contexts in Go in 5(-ish?) Minutes
15:14
TutorialEdge
Рет қаралды 60 М.
Creating a Go API using an ORM - Tutorial
22:31
TutorialEdge
Рет қаралды 72 М.
No empty
00:35
Mamasoboliha
Рет қаралды 9 МЛН