Make Docker Compose Coolify-ready
This commit is contained in:
12
COOLIFY.md
12
COOLIFY.md
@@ -23,6 +23,13 @@ POSTGRES_USER=postgres
|
||||
POSTGRES_PASSWORD=your_password
|
||||
POSTGRES_DB=fiscal
|
||||
PORT=3001
|
||||
BETTER_AUTH_SECRET=your-random-long-secret
|
||||
BETTER_AUTH_BASE_URL=https://api.your-fiscal-domain.com
|
||||
JWT_SECRET=your-jwt-secret-key-min-32-characters
|
||||
GITHUB_ID=your-github-oauth-client-id
|
||||
GITHUB_SECRET=your-github-oauth-client-secret
|
||||
GOOGLE_ID=your-google-oauth-client-id
|
||||
GOOGLE_SECRET=your-google-oauth-client-secret
|
||||
NEXT_PUBLIC_API_URL=https://your-fiscal-domain.com
|
||||
```
|
||||
|
||||
@@ -63,10 +70,15 @@ NEXT_PUBLIC_API_URL=https://your-fiscal-domain.com
|
||||
- `DATABASE_URL` - PostgreSQL connection string
|
||||
- `PORT` - Server port (default: 3001)
|
||||
- `NODE_ENV` - Environment (development/production)
|
||||
- `BETTER_AUTH_SECRET` - Required in production; use a long random secret
|
||||
- `BETTER_AUTH_BASE_URL` - Public backend URL used for auth callbacks
|
||||
|
||||
### Frontend
|
||||
- `NEXT_PUBLIC_API_URL` - Backend API URL
|
||||
|
||||
`NEXT_PUBLIC_API_URL` is used at image build time in the frontend Docker build.
|
||||
Set it in Coolify before deploying so the generated client bundle points to the correct backend URL.
|
||||
|
||||
## Database Setup
|
||||
|
||||
The application will automatically create the database schema on startup. To manually run migrations:
|
||||
|
||||
Reference in New Issue
Block a user