[新增] 添加 Docker Compose

This commit is contained in:
ryan
2026-05-28 23:15:04 +08:00
parent b0117b7c84
commit 21962db3bf
2 changed files with 24 additions and 1 deletions
+2 -1
View File
@@ -47,4 +47,5 @@ go.work.sum
/.gomodcache/
*.mmdb
*-source
*-source
*-source.*
+22
View File
@@ -0,0 +1,22 @@
services:
openflare-agent:
build:
context: .
dockerfile: Dockerfile
container_name: openflare-agent
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "127.0.0.1:18081:18081"
volumes:
- ./data/:/data
environment:
OPENFLARE_SERVER_URL: "http://host.docker.internal:3000"
OPENFLARE_AGENT_TOKEN: "373956188ddead1df6dd7c86cd330b73"
extra_hosts:
- "host.docker.internal:host-gateway"