Skip to content

Commit

Permalink
Updat config
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteLoupe committed Nov 21, 2024
1 parent 95c150e commit cad281f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ DB_SUPER_USER="postgres"
DB_SUPER_USER_PASSWORD="aSuperDuperSecretPassword"
DB_HOST="localhost"
DB_PORT=5432
DB_URI="postgresql://${DB_API_USER}:${DB_API_USER_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}"

# Client
CLIENT_PORT=3000
Expand Down
24 changes: 19 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,34 @@
version: 3.8
services:
build: ./server
build:
context: ./server
# Target should only be development, test or production.
# Using other NODE_ENV values will require the dockerfile to be updated.
targer: ${NODE_ENV}
ports:
- "${SERVER_PORT}:${SERVER_PORT}"
environment:
- NODE_ENV=development
- POSTGRES_URI=TODO
- NODE_ENV=${NODE_ENV}
- NODE_ENV_NAME=${NODE_ENV_NAME}
- DB_URI=${DB_URI}
- DB_OPERATIONAL_SCHEMA=${DB_OPERATIONAL_SCHEMA}
- DB_AUDIT_SCHEMA=${DB_AUDIT_SCHEMA}
- DB_AUDIT_ENABLED=${DB_AUDIT_ENABLED}
- DB_API_USER=${DB_API_USER}
- DB_API_USER_PASSWORD=${DB_API_USER_PASSWORD}
depends_on:
- db

client:
build: ./client
build:
context: ./client
# Target should only be development, test or production.
# Using other NODE_ENV values will require the dockerfile to be updated.
target: ${NODE_ENV}
ports:
- "${CLIENT_PORT}:${CLIENT_PORT}"
environment:
- NODE_ENV=development
- NODE_ENV=${NODE_ENV}
depends_on:
- server

Expand Down

0 comments on commit cad281f

Please sign in to comment.