- Install backend dependency
pip install -r backend/requirements.dev.txt
- Install frontend dependency
pnpm dev-install
- Generate local
env
cp ./frontend/.env.local.defaults ./frontend/.env.local cp ./backend/.env.defaults ./backend/.env
- Modify
./frontend/.env.local
environment variables - Modify in
./backend/.env
file- SQL related can refer to
./docker-compose.yml
- Fill in or modify other keys' value
- SQL related can refer to
pnpm db
pnpm backend
pnpm dev
- Generate local
docker-compose.yml
andenv
cp ./production/docker-compose.defaults.yml ./production/docker-compose.yml cp ./frontend/.env.local.defaults ./frontend/.env.local cp ./backend/.env.defaults ./backend/.env
- Modify
./production/docker-compose.yml
environment variables with password generator, e.g.openssl rand -base64 32
:MYSQL_ROOT_PASSWORD: MYSQL_DATABASE: MYSQL_USER: MYSQL_PASSWORD:
- Modify
./backend/.env
regarding to the setting in previous stepSQL_HOST="av-superb-mysql"
- Modify
./frontend/.env.local
environment variables - Make sure
./frontend/.env.production
contains correct domain name
docker network create av-superb
docker compose -f ./production/docker-compose.yml up -d