chore: parameterize docker compose deployment
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
node_modules
|
||||
dist
|
||||
dist-server
|
||||
.git
|
||||
.gitignore
|
||||
.env
|
||||
.env.local
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
db/rawdata
|
||||
db/datasets/postal
|
||||
+14
-14
@@ -4,7 +4,7 @@ services:
|
||||
environment:
|
||||
POSTGRES_DB: leads4less
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: change-me
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
volumes:
|
||||
- leads4less-db:/var/lib/postgresql/data
|
||||
|
||||
@@ -15,14 +15,14 @@ services:
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
NODE_ENV: ${NODE_ENV}
|
||||
APP_HOST: 0.0.0.0
|
||||
APP_PORT: 4000
|
||||
APP_ORIGIN: https://app.example.com
|
||||
DATABASE_URL: postgres://postgres:change-me@db:5432/leads4less
|
||||
COOKIE_SECRET: replace-with-long-random-secret
|
||||
GOOGLE_MAPS_SERVER_KEY: your-server-key
|
||||
PG_BOSS_SCHEMA: pgboss
|
||||
APP_ORIGIN: https://l4l.duramente.com
|
||||
DATABASE_URL: ${DATABASE_URL}
|
||||
COOKIE_SECRET: ${COOKIE_SECRET}
|
||||
GOOGLE_MAPS_SERVER_KEY: ${GOOGLE_MAPS_SERVER_KEY}
|
||||
PG_BOSS_SCHEMA: ${PG_BOSS_SCHEMA}
|
||||
SESSION_TTL_DAYS: 30
|
||||
expose:
|
||||
- "4000"
|
||||
@@ -34,11 +34,11 @@ services:
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
DATABASE_URL: postgres://postgres:change-me@db:5432/leads4less
|
||||
COOKIE_SECRET: replace-with-long-random-secret
|
||||
GOOGLE_MAPS_SERVER_KEY: your-server-key
|
||||
PG_BOSS_SCHEMA: pgboss
|
||||
NODE_ENV: ${NODE_ENV}
|
||||
DATABASE_URL: ${DATABASE_URL}
|
||||
COOKIE_SECRET: ${COOKIE_SECRET}
|
||||
GOOGLE_MAPS_SERVER_KEY: ${GOOGLE_MAPS_SERVER_KEY}
|
||||
PG_BOSS_SCHEMA: ${PG_BOSS_SCHEMA}
|
||||
SESSION_TTL_DAYS: 30
|
||||
|
||||
web:
|
||||
@@ -46,8 +46,8 @@ services:
|
||||
context: .
|
||||
target: web
|
||||
args:
|
||||
VITE_API_BASE_URL: https://api.example.com/api
|
||||
VITE_GOOGLE_MAPS_PLATFORM_KEY: your-browser-key
|
||||
VITE_API_BASE_URL: ${VITE_API_BASE_URL}
|
||||
VITE_GOOGLE_MAPS_PLATFORM_KEY: ${VITE_GOOGLE_MAPS_PLATFORM_KEY}
|
||||
depends_on:
|
||||
- api
|
||||
expose:
|
||||
|
||||
Reference in New Issue
Block a user