use env. variables
This commit is contained in:
parent
9dc35c445e
commit
911b25d96b
|
|
@ -1,17 +1,17 @@
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:15-alpine
|
image: postgres:17-alpine
|
||||||
container_name: quote_postgres
|
container_name: quote_db
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: quoteuser
|
POSTGRES_USER: ${DB_USER}
|
||||||
POSTGRES_PASSWORD: quotepass123
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||||
POSTGRES_DB: quotes_db
|
POSTGRES_DB: ${DB_NAME}
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
- ./init.sql:/docker-entrypoint-initdb.d/01-init.sql
|
- ./init.sql:/docker-entrypoint-initdb.d/01-init.sql
|
||||||
- ./add_invoices.sql:/docker-entrypoint-initdb.d/02-add-invoices.sql
|
- ./add_invoices.sql:/docker-entrypoint-initdb.d/02-add-invoices.sql
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5433:5432"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U quoteuser -d quotes_db"]
|
test: ["CMD-SHELL", "pg_isready -U quoteuser -d quotes_db"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
|
|
@ -25,12 +25,12 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: production
|
NODE_ENV: ${NODE_ENV}
|
||||||
DB_HOST: postgres
|
DB_HOST: ${DB_HOST}
|
||||||
DB_PORT: 5432
|
DB_PORT: ${DB_PORT}
|
||||||
DB_USER: quoteuser
|
DB_USER: ${DB_USER}
|
||||||
DB_PASSWORD: quotepass123
|
DB_PASSWORD: ${DB_PASSWORD}
|
||||||
DB_NAME: quotes_db
|
DB_NAME: ${DB_NAME}
|
||||||
volumes:
|
volumes:
|
||||||
- ./public/uploads:/app/public/uploads
|
- ./public/uploads:/app/public/uploads
|
||||||
- ./templates:/app/templates # NEU!
|
- ./templates:/app/templates # NEU!
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue