เข้าถึงแอปพลิเคชัน
เปิด browser และไปที่: http://<SERVER_IP>
การเริ่มต้นครั้งแรกอาจใช้เวลาสักครู่ Nginx 502 ชั่วคราวในช่วงเวลานี้ถือเป็นเรื่องปกติ
ข้อมูลรับรองการเข้าสู่ระบบเริ่มต้น:
- อีเมล:
[email protected] - รหัสผ่าน:
sample
โปรดอย่าลืมเปลี่ยนอีเมลและรหัสผ่านของคุณจากหน้าการตั้งค่า
Path ที่สำคัญ
- ไดเรกทอรีติดตั้ง:
/opt/automatisch - ไดเรกทอรีโครงการ:
/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:
/etc/nginx/sites-available/automatisch - ไซต์ที่เปิดใช้งาน NGINX:
/etc/nginx/sites-enabled/automatisch
คำสั่งทั่วไป
นำทางไปยังโครงการ:
cd /opt/automatisch
ดู logs:
docker compose logs -f
เริ่มบริการใหม่:
docker compose restart
หยุด/เริ่ม:
docker compose down
docker compose up -d
ตรวจสอบภาชนะ:
docker ps
บริการ
- หลัก: เว็บแอปพลิเคชัน Automatisch เปิดเผยบนพอร์ต 3000
- ผู้ปฏิบัติงาน: ตัวประมวลผลงานเบื้องหลัง ภายใน
- PostgreSQL: บริการฐานข้อมูลภายใน (พอร์ตเริ่มต้น 5432)
- Redis: บริการคิวและแคชภายใน (พอร์ตเริ่มต้น 6379)
เปิดใช้งาน SSL กับโดเมน
1. ชี้โดเมนของคุณไปยัง IP ของ server
2. แก้ไข config ของ Nginx และเปลี่ยนทั้งคู่ server_name _; กับโดเมนของคุณ (<your-domain>):
vim /etc/nginx/sites-available/automatisch
3. ติดตั้ง Certbot:
apt install -y certbot python3-certbot-nginx
4. รันคำสั่งต่อไปนี้เพื่อสร้าง Let’s Encrypt certificate ที่ใช้ได้:
certbot --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. รีสตาร์ท Nginx เพื่อใช้การเปลี่ยนแปลง:
systemctl restart nginx
6. เปิดเบราว์เซอร์ของคุณและไปที่: https://yourdomain.com