Accessing Focalboard
- เปิดเบราว์เซอร์ของคุณและเข้าไปที่:
http://<SERVER_IP> - Sign up and create your account on the first visit (this becomes the admin user).
ไฟล์และไดเร็กทอรีที่สำคัญ
- ไดเร็กทอรีการติดตั้ง:
/opt/focalboard - Compose file:
/opt/focalboard/docker-compose.yml - การตั้งค่า Nginx:
/etc/nginx/sites-available/focalboard - ปริมาณข้อมูล:
/var/lib/docker/volumes/focalboard_fbdata/_data - PostgreSQL volume (if using PostgreSQL):
/var/lib/docker/volumes/focalboard_pgdata/_data - App config (if using PostgreSQL):
/opt/focalboard/config.json - Env file (if using PostgreSQL):
/opt/focalboard/.env
Docker Management
Go to the install directory:
cd /opt/focalboard
Start containers:
docker compose up -d
ดูบันทึก:
docker compose logs -f
Stop containers:
docker compose down
รีสตาร์ทคอนเทนเนอร์:
docker restart focalboard
Access container shell:
docker exec -it focalboard sh
การเปิดใช้งาน SSL กับโดเมน
1. ชี้โดเมนของคุณไปยังที่อยู่ IP ของเซิร์ฟเวอร์
2. Edit Nginx config and replace server_name <IP>; ด้วยโดเมนของคุณ (<your-domain>-
vim /etc/nginx/sites-available/focalboard
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