애플리케이션 접속
브라우저를 열고 다음 주소로 이동하세요: http://<SERVER_IP>
최초 시작 시 몇 분이 소요될 수 있으며, 이 시간 동안 Nginx 502 오류가 일시적으로 발생할 수 있습니다.
기본 로그인 자격 증명:
- 이메일:
[email protected] - 암호:
sample
설정 페이지에서 이메일과 비밀번호를 반드시 변경하세요.
중요 경로
- 설치 디렉토리:
/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
로그 보기:
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로 연결합니다.
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. 변경 사항을 적용하려면 Nginx를 재시작하세요:
systemctl restart nginx
6. 브라우저를 열고 다음 주소로 접속하세요: https://yourdomain.com