1646397537

This commit is contained in:
Amruth Pillai 2022-03-04 13:38:58 +01:00
parent 269d5206e6
commit 7c73685759
No known key found for this signature in database
GPG Key ID: E3C57DF9B80855AD
4 changed files with 24 additions and 3 deletions

View File

@ -28,6 +28,12 @@ You have complete control over what goes into your resume, how it looks, what co
- Tailor-made Backend and Database, isolated from Google, Amazon etc.
- **Oh, and did I mention that it's free?**
## Docker
```
docker run -d -p 3000:3000 -p 3100:3100 --env-file .env amruthpillai/reactive-resume:v3
```
## Build from Source
1. Clone the repository locally, or use GitHub Codespaces or CodeSandbox

View File

@ -1 +1 @@
PORT=3100
SERVER_PORT=3100

View File

@ -4,7 +4,7 @@ export default registerAs('app', () => ({
timezone: process.env.TZ,
environment: process.env.NODE_ENV,
secretKey: process.env.SECRET_KEY,
port: parseInt(process.env.PORT, 10) || 3100,
port: parseInt(process.env.SERVER_PORT, 10) || 3100,
url: process.env.APP_URL || 'http://localhost:3000',
serverUrl: process.env.SERVER_URL || 'http://localhost:3100',
}));

View File

@ -11,8 +11,23 @@ services:
- ./scripts/database/initialize.sql:/docker-entrypoint-initdb.d/initialize.sql
- pgdata:/var/lib/postgresql/data
# Development
# app:
# build: .
# container_name: app
# depends_on:
# - postgres
# ports:
# - '3000:3000'
# - '3100:3100'
# env_file: .env
# environment:
# NODE_ENV: development
# POSTGRES_HOST: postgres
# Production
app:
build: .
image: amruthpillai/reactive-resume
container_name: app
depends_on:
- postgres