File tree Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM alpine:latest
2
+
3
+ LABEL org.opencontainers.image.title="firefly" \
4
+ org.opencontainers.image.version="v2.0" \
5
+ org.opencontainers.image.description="Firefly WireGuard server" \
6
+ org.opencontainers.image.licenses="MIT" \
7
+ org.opencontainers.image.source="https://github.com/Safe3/firefly"
8
+
9
+ COPY firefly-linux-amd64 /firefly/firefly
10
+
11
+ # Install Linux packages
12
+ RUN apk add --no-cache --purge --clean-protected dumb-init iptables tzdata && rm -rf /var/cache/apk/*
13
+
14
+ EXPOSE 50120/udp
15
+ EXPOSE 50121/tcp
16
+
17
+ WORKDIR /firefly
18
+ CMD ["/usr/bin/dumb-init" , "./firefly" ]
Original file line number Diff line number Diff line change 68
68
69
69
后台运行:nohup ./firefly-linux-amd64 >/dev/null 2>&1 &
70
70
71
+ 容器中运行:下载docker-compose.yml文件然后执行docker compose up -d
72
+
71
73
访问 http://ip:50121 登录管理后台,默认密码firefly
72
74
73
75
Original file line number Diff line number Diff line change
1
+ version : ' 3'
2
+ services :
3
+ firefly :
4
+ image : " uusec/firefly:latest"
5
+ container_name : firefly-server
6
+ devices :
7
+ - /dev/net/tun
8
+ network_mode : host
9
+ volumes :
10
+ - /lib/modules:/lib/modules
11
+ - /etc/firefly:/firefly/conf
12
+ cap_add :
13
+ - NET_ADMIN
14
+ - SYS_MODULE
15
+ restart : unless-stopped
16
+ environment :
17
+ # - TZ=Asia/Shanghai
18
+ # - FIREFLY_DEVICE=eth0
19
+ - FIREFLY_PASSWORD=firefly
20
+ # - FIREFLY_AUTO_SSL=false
21
+ # - FIREFLY_PORT=50121
22
+
You can’t perform that action at this time.
0 commit comments