This is a Next.js project bootstrapped with create-next-app.
.env.example 파일을 참고하여 .env 파일을 작성합니다.
npm installnpm run dev브라우저에서 http://localhost:3000로 이동합니다.
Github 레포지토리 설정에서 Actions secrets and variables 페이지로 이동한 후 Repository secrets에 아래 값을 입력합니다.
- NEXT_PUBLIC_CHANNEL_PLUGIN_KEY=example
- NEXT_PUBLIC_GTM_ID=GTM-example
- NEXT_PUBLIC_GA_ID=G-example
서버에서 Docker Compose 환경을 설정한 후, docker-compose.yml 을 아래와 같이 작성합니다.
services:
stdev:
container_name: stdev
image: ghcr.io/stdev-kr/stdev:main
pull_policy: always
expose:
- 1000
restart: always
environment:
DATABASE_URL: postgres://user:password@url:port/schema
PAYLOAD_SECRET: example
AWS_ACCESS_KEY: example
AWS_SECRET_KEY: example
SMTP_HOST: smtp.example.com
SMTP_USER: example
SMTP_PASS: example아래 명령을 실행합니다.
docker compose up -dPort 1000 번에 Reverse Proxy를 붙입니다.