代码拉取完成,页面将自动刷新
version: "3.5"
services:
golang:
container_name: "${APP_NAME}-golang-${APP_ID}"
image: golang:1.19
environment:
GO111MODULE: "on"
GOPATH: "/go"
GOPROXY: ${GO_PROXY}
TZ: ${APP_TZ}
working_dir: /usr/src
ports:
- "${APP_PORT}:${SERVER_PORT}"
volumes:
- ./:/usr/src
- ./storage/cache/mod:/go/pkg/mod/cache
- ./bin:/go/bin
restart: always
tty: true
depends_on:
- postgres
- redis
networks:
network:
ipv4_address: ${APP_ADDR}.2
postgres:
container_name: "${APP_NAME}-postgres-${APP_ID}"
image: postgres:15
environment:
TZ: ${APP_TZ}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: ${DB_DATABASE}
volumes:
- ./docker/postgresql/data:/var/lib/postgresql/data
- ./docker/postgresql/sh:/tmp/sh
ports:
- "15432:5432"
restart: always
networks:
network:
ipv4_address: ${APP_ADDR}.3
redis:
container_name: "${APP_NAME}-redis-${APP_ID}"
image: redis:7.0-alpine
environment:
TZ: ${APP_TZ}
volumes:
- ./docker/redis/data:/data
command: "--requirepass ${REDIS_PASS}"
restart: always
networks:
network:
ipv4_address: ${APP_ADDR}.4
networks:
network:
name: "${APP_NAME}-network-${APP_ID}"
ipam:
config:
- subnet: ${APP_ADDR}.0/24
gateway: ${APP_ADDR}.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。