Skip to content

Commit

Permalink
v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Safe3 committed Apr 11, 2024
1 parent b5e2a95 commit 2bbeecd
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM alpine:latest

LABEL org.opencontainers.image.title="firefly" \
org.opencontainers.image.version="v2.0" \
org.opencontainers.image.description="Firefly WireGuard server" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.source="https://github.com/Safe3/firefly"

COPY firefly-linux-amd64 /firefly/firefly

# Install Linux packages
RUN apk add --no-cache --purge --clean-protected dumb-init iptables tzdata && rm -rf /var/cache/apk/*

EXPOSE 50120/udp
EXPOSE 50121/tcp

WORKDIR /firefly
CMD ["/usr/bin/dumb-init", "./firefly"]
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@

后台运行:nohup ./firefly-linux-amd64 >/dev/null 2>&1 &

容器中运行:下载docker-compose.yml文件然后执行docker compose up -d

访问 http://ip:50121 登录管理后台,默认密码firefly


Expand Down
22 changes: 22 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: '3'
services:
firefly:
image: "uusec/firefly:latest"
container_name: firefly-server
devices:
- /dev/net/tun
network_mode: host
volumes:
- /lib/modules:/lib/modules
- /etc/firefly:/firefly/conf
cap_add:
- NET_ADMIN
- SYS_MODULE
restart: unless-stopped
environment:
#- TZ=Asia/Shanghai
#- FIREFLY_DEVICE=eth0
- FIREFLY_PASSWORD=firefly
#- FIREFLY_AUTO_SSL=false
#- FIREFLY_PORT=50121

0 comments on commit 2bbeecd

Please sign in to comment.