File tree Expand file tree Collapse file tree 12 files changed +11
-18
lines changed
docker-mariadb-clean-arch
docker-nginx-loadbalancer Expand file tree Collapse file tree 12 files changed +11
-18
lines changed Original file line number Diff line number Diff line change 1- FROM golang:1.24@sha256:d9db32125db0c3a680cfb7a1afcaefb89c898a075ec148fdc2f0f646cc2ed509
1+ FROM golang:1.24
22
33# Enviroment variable
44WORKDIR /usr/src/some-api
Original file line number Diff line number Diff line change 1- version : ' 3.8'
21services :
32 web :
43 build : .
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ services:
1515
1616 example_db :
1717 container_name : example_db
18- image : postgres:17.1 -alpine
18+ image : postgres:17-alpine
1919 environment :
2020 - POSTGRES_DB=example
2121 - POSTGRES_USER=postgres
Original file line number Diff line number Diff line change 1- version : ' 3.8'
21services :
32 scraper_app :
43 container_name : scraper_app
@@ -15,7 +14,7 @@ services:
1514 - colly_db
1615
1716 colly_db :
18- image : postgres:14.1 -alpine
17+ image : postgres:14-alpine
1918 container_name : colly_db
2019 ports :
2120 - 5435:5432
Original file line number Diff line number Diff line change 11# Get Go image from DockerHub.
2- FROM golang:1.24@sha256:d9db32125db0c3a680cfb7a1afcaefb89c898a075ec148fdc2f0f646cc2ed509 AS api
2+ FROM golang:1.24 AS api
33
44# Set working directory.
55WORKDIR /compiler
Original file line number Diff line number Diff line change 1- version : ' 3.3'
2-
3- # services describe the containers that will start
41services :
52 # api is the container name for our Go API
63 api :
@@ -19,8 +16,8 @@ services:
1916 replicas : 5
2017 # nginx container
2118 nginx :
22- # specifies the latest stable alpine nginx image
23- image : nginx:stable-alpine
19+ # specifies the latest stable nginx image
20+ image : nginx:stable
2421 # Connects the conf file of the container to the conf file in our folder
2522 volumes :
2623 - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
Original file line number Diff line number Diff line change 1- version : " 3.7"
21services :
3-
42 fiber_app :
53 build :
64 context : ./app
Original file line number Diff line number Diff line change 11# Use the offical Golang image to create a build artifact.
22# This is based on Debian and sets the GOPATH to /go.
33# https://hub.docker.com/_/golang
4- FROM golang:1.24@sha256:d9db32125db0c3a680cfb7a1afcaefb89c898a075ec148fdc2f0f646cc2ed509 as builder
4+ FROM golang:1.24 as builder
55
66# Copy local code to the container image.
77WORKDIR /go/app
Original file line number Diff line number Diff line change 11# Use the offical Golang image to create a build artifact.
22# This is based on Debian and sets the GOPATH to /go.
33# https://hub.docker.com/_/golang
4- FROM golang:1.24@sha256:d9db32125db0c3a680cfb7a1afcaefb89c898a075ec148fdc2f0f646cc2ed509 as builder
4+ FROM golang:1.24 as builder
55
66# Copy local code to the container image.
77WORKDIR /go/app
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ func main() {
8989Here is an example ` Dockerfile` for the application:
9090
9191` ` ` Dockerfile
92- FROM golang:1.20-alpine
92+ FROM golang:1.24
9393
9494WORKDIR /app
9595
You can’t perform that action at this time.
0 commit comments