Truy cập ứng dụng
Mở trình duyệt của bạn và truy cập vào: http://<SERVER_IP>
First startup may take a few minutes; a temporary Nginx 502 during this time is normal.
Thông tin đăng nhập mặc định:
- E-mail:
[email protected] - Mật khẩu:
sample
Please do not forget to change your email and password from the settings page.
Các tuyến đường quan trọng
- Thư mục cài đặt:
/opt/automatisch - Project directory:
/opt/automatisch - Tệp Docker Compose:
/opt/automatisch/docker-compose.yml - Application storage (volume):
/var/lib/docker/volumes/automatisch_automatisch_storage/_data - PostgreSQL data (volume):
/var/lib/docker/volumes/automatisch_postgres_data/_data - Redis data (volume):
/var/lib/docker/volumes/automatisch_redis_data/_data - Cấu hình NGINX:
/etc/nginx/sites-available/automatisch - NGINX enabled site:
/etc/nginx/sites-enabled/automatisch
Common Commands
Navigate to project:
cd /opt/automatisch
Xem nhật ký:
docker compose logs -f
Khởi động lại các dịch vụ:
docker compose restart
Stop / Start:
docker compose down
docker compose up -d
Kiểm tra các thùng chứa:
docker ps
Dịch vụ
- Main: Automatisch web application, exposed on port 3000
- Worker: Background job processor, internal
- PostgreSQL: Database service, internal (default port 5432)
- Redis: Queue and cache service, internal (default port 6379)
Kích hoạt SSL với tên miền
1. Trỏ tên miền của bạn đến địa chỉ IP của máy chủ.
2. Chỉnh sửa cấu hình Nginx và thay thế cả hai server_name _; với tên miền của bạn (<your-domain>):
vim /etc/nginx/sites-available/automatisch
3. Cài đặt Certbot:
apt install -y certbot python3-certbot-nginx
4. Chạy lệnh sau để tạo chứng chỉ Let's Encrypt hợp lệ:
certbot --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Restart Nginx to apply the changes:
systemctl restart nginx
6. Open your browser and visit: https://yourdomain.com
