เข้าถึงแอปพลิเคชัน
เปิดเบราว์เซอร์ของคุณแล้วไปที่: http://<SERVER_IP>
First startup may take a few minutes; a temporary Nginx 502 during this time is normal.
ข้อมูลประจำตัวการเข้าสู่ระบบเริ่มต้น:
- อีเมล:
[email protected] - รหัสผ่าน:
sample
Please do not forget to change your email and password from the settings page.
เส้นทางสำคัญ
- ไดเร็กทอรีการติดตั้ง:
/opt/automatisch - Project directory:
/opt/automatisch - ไฟล์ 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 - การตั้งค่า NGINX:
/etc/nginx/sites-available/automatisch - NGINX enabled site:
/etc/nginx/sites-enabled/automatisch
Common Commands
Navigate to project:
cd /opt/automatisch
ดูบันทึก:
docker compose logs -f
เริ่มบริการใหม่:
docker compose restart
Stop / Start:
docker compose down
docker compose up -d
ตรวจสอบภาชนะบรรจุ:
docker ps
บริการ
- 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)
การเปิดใช้งาน SSL กับโดเมน
1. ชี้โดเมนของคุณไปยังที่อยู่ IP ของเซิร์ฟเวอร์
2. แก้ไขไฟล์การตั้งค่า Nginx และแทนที่ทั้งสองส่วน server_name _; ด้วยโดเมนของคุณ (<your-domain>-
vim /etc/nginx/sites-available/automatisch
3. ติดตั้ง 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. Restart Nginx to apply the changes:
systemctl restart nginx
6. เปิดเบราว์เซอร์ของคุณและไปที่: https://yourdomain.com
