It's time to learn how to build and deploy your go application into a docker image and run it as a container in Docker. for practice this time we will use the golang restapi-socketio application which you can pull or download from github.
to run this restapi-socketio project you need mysql and redis database containers. to be able to connect between containers. you can use IP container. You can also use the container name or host, provided that each container has at least 2 docker networks.
Repository GitHub
Go Restapi-SocketIO : https://kekasi.link/restapi-socketio
List of contents
00:00 intro
00:20 git clone restapi-socketio
01:15 dockerfile structure
01:40 Added docker "kekasi-network" network
01:50 Install Redis in docker
02:25 Added docker "kekasi-network" network in Redis container
02:35 Install MariaDB in docker
03:30 Added docker "kekasi-network" network in MariaDB container
03:37 Connect to MariaDB Container (Create Database)
04:13 Build Go Apps to docker images
07:20 Create a "restapi-socketio" container from the docker images
07:32 Added docker "kekasi-network" network in restapi-socketio container
07:42 Restart the docker container (command)
07:55 Access the Go application in docker
Artikel : https://kekasi.co.id
Aktifkan Fitur Subtitles/ CC (Closed Caption). untuk intruksi lebih lanjut. | • cara menampilkan subtitle di youtube
#Dockerfile #Buildgolang #KekasiGen #ArdityaKekasi
CODE : 20230621-01
~-~~-~~~-~~-~-~-~~-~~~-~~
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
AND THANKS FOR WATCHING! :)
~-~~-~~~-~~-~-~-~~-~~~-~~