ZhangZhihui's Blog  
上一页 1 ··· 87 88 89 90 91 92 93 94 95 ··· 115 下一页

2023年12月16日

摘要: 阅读全文
posted @ 2023-12-16 21:00 ZhangZhihuiAAA 阅读(14) 评论(0) 推荐(0)
 
摘要: depends_on depends_on expresses startup and shutdown dependencies between services. Short syntax The short syntax variant only specifies service names 阅读全文
posted @ 2023-12-16 15:58 ZhangZhihuiAAA 阅读(364) 评论(0) 推荐(0)

2023年12月10日

摘要: package main import ( "context" "log" "os" "github.com/jackc/pgx/v5/pgxpool" ) const DB_SOURCE = "postgresql://root:aaa@localhost:5432/zimple_bank?ssl 阅读全文
posted @ 2023-12-10 22:19 ZhangZhihuiAAA 阅读(23) 评论(0) 推荐(0)
 
摘要: CMD The CMD instruction has three forms: CMD ["executable","param1","param2"] (exec form, this is the preferred form) CMD ["param1","param2"] (as defa 阅读全文
posted @ 2023-12-10 21:19 ZhangZhihuiAAA 阅读(48) 评论(0) 推荐(0)
 
摘要: Docker compose file: services: postgres: image: postgres:16-alpine environment: - POSTGRES_USER=root - POSTGRES_PASSWORD=aaa - POSTGRES_DB=zimple_bank 阅读全文
posted @ 2023-12-10 17:17 ZhangZhihuiAAA 阅读(24) 评论(0) 推荐(0)
 
摘要: Got below error when createdb: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory This is bec 阅读全文
posted @ 2023-12-10 17:15 ZhangZhihuiAAA 阅读(875) 评论(0) 推荐(0)

2023年12月9日

摘要: docker builder prune Remove build cache Usage docker builder prune Description Remove build cache Options OptionShortDefaultDescription --all -a Remov 阅读全文
posted @ 2023-12-09 21:54 ZhangZhihuiAAA 阅读(68) 评论(0) 推荐(0)
 
摘要: docker compose build --no-cache docker compose up 阅读全文
posted @ 2023-12-09 18:43 ZhangZhihuiAAA 阅读(128) 评论(0) 推荐(0)

2023年12月8日

摘要: Dockerfile: # Build stage FROM golang:1.21.5-alpine3.18 AS builder WORKDIR /app COPY . . RUN go env -w GOPROXY=https://goproxy.io,direct RUN go build 阅读全文
posted @ 2023-12-08 21:44 ZhangZhihuiAAA 阅读(23) 评论(0) 推荐(0)

2023年12月7日

摘要: Package naming Alan Donovan, co-author of “The Go Programming Language,” advises, Choose package names that will sound natural in a sentence. This app 阅读全文
posted @ 2023-12-07 11:25 ZhangZhihuiAAA 阅读(64) 评论(0) 推荐(0)
上一页 1 ··· 87 88 89 90 91 92 93 94 95 ··· 115 下一页