Files
api-proxy/docker-compose.yml
2026-01-16 01:55:32 +08:00

10 lines
352 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: '3.8'
services:
api-proxy:
# 指向 Dockerfile 的路径,"." 表示当前部署目录
build: .
container_name: api-proxy_service
# 如果您在 main.go 中配置的端口是 7890那么这里保持 7890
ports:
- "7890:7890" # 映射:将主机的 80 端口映射到容器内的 7890 端口
restart: always