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