访问应用
打开浏览器,访问: http://<SERVER_IP>
首次启动可能需要几分钟。此期间出现 Nginx 502 属正常现象。
默认登录凭据:
- Email:
[email protected] - Password:
sample
请记得在设置页面修改你的邮箱和密码。
Important Paths
- Install directory:
/opt/automatisch - Project directory:
/opt/automatisch - Docker Compose 文件:
/opt/automatisch/docker-compose.yml - 应用存储(卷):
/var/lib/docker/volumes/automatisch_automatisch_storage/_data - PostgreSQL 数据(卷):
/var/lib/docker/volumes/automatisch_postgres_data/_data - Redis 数据(卷):
/var/lib/docker/volumes/automatisch_redis_data/_data - NGINX config:
/etc/nginx/sites-available/automatisch - NGINX 已启用的站点:
/etc/nginx/sites-enabled/automatisch
Common Commands
Navigate to project:
cd /opt/automatisch
View logs:
docker compose logs -f
Restart services:
docker compose restart
Stop / Start:
docker compose down
docker compose up -d
Check containers:
docker ps
Services
- 主服务:Automatisch Web 应用,对外暴露端口 3000
- Worker:后台任务处理器,仅内部访问
- PostgreSQL:数据库服务,仅内部访问(默认端口 5432)
- Redis:队列与缓存服务,仅内部访问(默认端口 6379)
通过域名启用 SSL
1. 将你的域名指向服务器 IP。
2. 编辑 Nginx 配置,替换以下两处 server_name _; 使用您的域名(<your-domain>):
vim /etc/nginx/sites-available/automatisch
3. Install Certbot:
apt install -y certbot python3-certbot-nginx
4. 运行以下命令,生成有效的 Let's Encrypt 证书:
certbot --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. 重启 Nginx 以应用更改:
systemctl restart nginx
6. 打开浏览器,访问: https://yourdomain.com