-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (34 loc) · 899 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (34 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
services:
app:
build: .
container_name: batcom
ports:
- ${PORT:-5120}:5120
command: >
sh -c "NODE_TLS_REJECT_UNAUTHORIZED=0 npx drizzle-kit push && node dist/index.js"
environment:
NODE_TLS_REJECT_UNAUTHORIZED: 0
NODE_ENV: ${NODE_ENV:-development}
POSTGRES_URL: ${POSTGRES_URL}
POSTGRES_CA_CERT: ${POSTGRES_CA_CERT}
PORT: ${PORT:-5120}
JWT_SECRET: ${JWT_SECRET}
JWT_EXPIRES_IN: ${JWT_EXPIRES_IN}
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
# restart: unless-stopped
# depends_on:
# - db
# db:
# container_name: batcom-db
# image: postgres:17
# environment:
# POSTGRES_USER: batcomuser
# POSTGRES_PASSWORD: batcompassword
# POSTGRES_DB: batcom
# ports:
# - "5432:5432"
# volumes:
# - ./postgres-data:/var/lib/postgresql/data
# volumes:
# postgres_data:
# db: