Change ./init.sh to be an executable then run it. The default inner container ports are as followed: - Postgres: 5432:5432 - Backend: 3001:3000 - Frontend: 3000:3000 - Frontend dev: 8000 The backend image needs to be built: docker compose up -d --build
5 lines
232 B
Bash
Executable File
5 lines
232 B
Bash
Executable File
#!/usr/bin/sh
|
|
printf "POSTGRES_USER=\nPOSTGRES_PASSWORD=\nPOSTGRES_DB=\n# Docker inner port container\nPOSTGRES_PORT=5432\nBACKEND_PORT=3000\nFRONTEND_PORT=3000\n" > .env
|
|
ln $(pwd)/.env $(pwd)/backend
|
|
ln $(pwd)/.env $(pwd)/frontend
|