Here's the full log.
hidayat@ubuntu sementara/golang » git clone https://github.com/sonyarianto/imaginative-go.git
Cloning into 'imaginative-go'...
remote: Enumerating objects: 1567, done.
remote: Total 1567 (delta 0), reused 0 (delta 0), pack-reused 1567
Receiving objects: 100% (1567/1567), 2.97 MiB | 510.00 KiB/s, done.
Resolving deltas: 100% (799/799), done.
hidayat@ubuntu sementara/golang » cd imaginative-go
hidayat@ubuntu golang/imaginative-go (master) » sudo docker-compose up -d
[sudo] password for hidayat:
Creating network "imaginative-go_network-imaginative-go" with the default driver
Creating volume "imaginative-go_volume-mongodb-imaginative-go" with default driver
Building mongodb
Sending build context to Docker daemon 6.656kB
Step 1/3 : FROM mongo:latest
latest: Pulling from library/mongo
d7bfe07ed847: Pull complete
97ef66a8492a: Pull complete
20cec14c8f9e: Pull complete
38c3018eb09a: Pull complete
ccc9e1c2556b: Pull complete
593c62d03532: Pull complete
1a103a446c3f: Pull complete
be887b845d3f: Pull complete
e5543880b183: Pull complete
Digest: sha256:37e84d3dd30cdfb5472ec42b8a6b4dc6ca7cacd91ebcfa0410a54528bbc5fa6d
Status: Downloaded newer image for mongo:latest
---> c8b57c4bf7e3
Step 2/3 : COPY ./0_samples_list.js /docker-entrypoint-initdb.d/
---> 73e733ffcc1c
Step 3/3 : COPY ./1_content_category.js /docker-entrypoint-initdb.d/
---> a55995153c81
Successfully built a55995153c81
Successfully tagged imaginative-go_mongodb:latest
WARNING: Image for service mongodb was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Building go
Sending build context to Docker daemon 2.048kB
Step 1/10 : FROM golang:latest
latest: Pulling from library/golang
1339eaac5b67: Pull complete
4c78fa1b9799: Pull complete
14f0d2bd5243: Pull complete
76e5964a957d: Pull complete
0f00f9da9be9: Pull complete
691e33f10d2f: Pull complete
faf2829ac353: Pull complete
Digest: sha256:a452d6273ad03a47c2f29b898d6bb57630e77baf839651ef77d03e4e049c5bf3
Status: Downloaded newer image for golang:latest
---> 46ae95f04a69
Step 2/10 : RUN go get -u -v github.com/go-sql-driver/mysql
---> Running in c4fa51e36aac
go: go.mod file not found in current directory or any parent directory.
'go get' is no longer supported outside a module.
To build and install a command, use 'go install' with a version,
like 'go install example.com/cmd@latest'
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.
The command '/bin/sh -c go get -u -v github.com/go-sql-driver/mysql' returned a non-zero code: 1
ERROR: Service 'go' failed to build : Build failed
hidayat@ubuntu golang/imaginative-go (master) »