I hereby claim:
- I am techadontech on github.
- I am leontinashe (https://keybase.io/leontinashe) on keybase.
- I have a public key ASBB4LnIEFs0qcsKotK9PxNaW0pA2V-tAC6QUer7MHyHjgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
version: '2' | |
services: | |
mysql: | |
image: 'docker.io/bitnami/mysql:8.0-debian-10' | |
volumes: | |
- 'mysql_data:/bitnami/mysql' | |
environment: | |
- MYSQL_USER=bn_wordpress | |
- MYSQL_DATABASE=bitnami_wordpress | |
- ALLOW_EMPTY_PASSWORD=yes |
ARG GO_VERSION=1.12 | |
FROM golang:${GO_VERSION}-alpine AS builder | |
RUN apk update && apk add alpine-sdk git && rm -rf /var/cache/apk/* | |
RUN mkdir -p /api | |
WORKDIR /api | |
COPY . . |
package handlers | |
import ( | |
"github.com/gin-gonic/gin" | |
) | |
func IsApplicationWorking(c *gin.Context){ | |
c.JSON(200, gin.H{ | |
"error": nil, | |
"status": "sucess", |
package main | |
import ( | |
"github.com/gin-gonic/gin" | |
"github.com/goprovision/api/handlers" | |
) | |
func main() { | |
//setup gin framework | |
r := gin.New() |
version: '3' | |
services: | |
reverse-proxy: | |
build: | |
context: ./nginx | |
container_name: reverse_proxy | |
restart: always | |
networks: | |
- proxy_network | |
depends_on: |
package main | |
import ( | |
"context" | |
"github.com/mongodb/mongo-go-driver/bson" | |
"github.com/mongodb/mongo-go-driver/bson/objectid" | |
"github.com/mongodb/mongo-go-driver/bson/primitive" | |
"github.com/mongodb/mongo-go-driver/mongo" | |
"log" | |
"time" |
package main | |
import ( | |
"log" | |
"os/exec" | |
) | |
func main() { | |
path, err := exec.LookPath("ls") | |
if err != nil { |
package mongo | |
import ( | |
"time" | |
"log" | |
"gopkg.in/mgo.v2" | |
"gopkg.in/mgo.v2/bson" | |
) | |
// Profile - is the memory representation of one user profile |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |