generated from alphane/template
Initial commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
ports:
|
||||
- "${HOST_PORT:-3000}:${HOST_PORT:-3000}"
|
||||
volumes:
|
||||
- ./.env:/home/node/app/.env.production
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
db:
|
||||
image: postgres:17.6
|
||||
restart: always
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
TZ: "UTC"
|
||||
POSTGRES_USER: "${DB_USER}"
|
||||
POSTGRES_PASSWORD: "${DB_PASS}"
|
||||
POSTGRES_DB: "${DB_NAME}"
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- pg-data:/var/lib/postgresql/data
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
Reference in New Issue
Block a user