-
Notifications
You must be signed in to change notification settings - Fork 75
/
docker-compose.yml
76 lines (71 loc) · 2.08 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '3'
services:
db:
privileged: true
image: mysql:8.0.30
container_name: antenna-mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: [email protected]
MYSQL_DATABASE: antenna
TZ: Asia/Shanghai
networks:
- antenna
restart: always
antenna:
image: jihongjun/antenna:latest
depends_on:
- db
container_name: antenna
ports:
- "21:21"
- "80:80"
- "2345:2345"
- "53:53/udp"
- "443:443"
networks:
- antenna
environment:
# MYSQL配置,需保证与上述数据库一致
MYSQL_HOST: db
MYSQL_PORT: 3306
MYSQL_USERNAME: root
MYSQL_PASSWORD: [email protected]
# 平台配置
# 平台域名
PLATFORM_DOMAIN: 58antenna.cn
# 平台公网IP
SERVER_IP: 1.1.1.1
# 隐藏后台uri,如果设置成aaa,则后台地址为http://test.com/aaa
LOGIN_PATH: 'aaa'
# 初始登录用户
PLATFORM_ROOT_USER: [email protected]
# 初始账户密码
PLATFORM_ROOT_PASSWORD: [email protected]
# 平台注册配置 0代表不开放注册,1代表邀请码注册,2代表开放注册,但需要正确填写邮箱配置信息,不然用户无法收到消息
REGISTER_TYPE: 0
# 邮件配置
# SMTP服务器地址
EMAIL_HOST: 1.1.1.1
# SMTP服务器端口
EMAIL_PORT: 465
# SMTP账户
EMAIL_HOST_USER: [email protected]
# SMTP密码/授权码
EMAIL_HOST_PASSWORD: 123456
# 消息配置
# 保存近七天的消息记录,0代表关闭配置,1代表开启配置
SAVE_MESSAGE_SEVEN_DAYS: 1
# 代表平台接收到消息开启邮件通知 1开启邮箱通知 0代表关闭邮箱消息通知,注意如若开启邮箱通知,需正确填写邮箱配置信息,不然用户无法收到消息
OPEN_EMAIL: 0
# DNS解析记录
DNS_DOMAIN: test.cn
# 初始解析记录
DNS_DOMAIN_IP: 127.0.0.1
# 前后端分离部署
SERVER_URL: http://test.cn
restart: always
networks:
antenna:
driver: bridge