123
This commit is contained in:
@@ -15,7 +15,6 @@ cd /root/data/docker_data/Sub2API
|
||||
|
||||
# 3、填写docker-compose配置
|
||||
cat <<EOF > docker-compose.yml
|
||||
version: '3.8'
|
||||
services:
|
||||
db:
|
||||
image: postgres:15-alpine
|
||||
@@ -48,7 +47,7 @@ services:
|
||||
# 主机用容器服务名 db / redis,不要写宿主机 IP!
|
||||
- DATABASE_URL=postgres://postgres:changeme@db:5432/sub2api?sslmode=disable # 用户名/密码/库名要与上面 db 对应!
|
||||
- REDIS_URL=redis://redis:6379
|
||||
- PORT=8080
|
||||
- SERVER_PORT=8080 # 镜像用的是 SERVER_PORT,必须与 ports 右边的容器端口一致
|
||||
- GIN_MODE=release
|
||||
EOF
|
||||
|
||||
|
||||
Reference in New Issue
Block a user