애플리케이션에 액세스
브라우저를 열고 이동: 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