mirror of
https://github.com/handsomezhuzhu/api-proxy.git
synced 2026-02-20 11:50:15 +00:00
10 lines
352 B
YAML
10 lines
352 B
YAML
version: '3.8'
|
||
services:
|
||
api-proxy:
|
||
# 指向 Dockerfile 的路径,"." 表示当前部署目录
|
||
build: .
|
||
container_name: api-proxy_service
|
||
# 如果您在 main.go 中配置的端口是 7890,那么这里保持 7890
|
||
ports:
|
||
- "7890:7890" # 映射:将主机的 80 端口映射到容器内的 7890 端口
|
||
restart: always |