-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 950 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (41 loc) · 950 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
36
37
38
39
40
41
42
43
44
services:
postgres:
image: postgres:15
container_name: postgres_db
restart: always
environment:
POSTGRES_USER: ${DB_USER:-david}
POSTGRES_PASSWORD: ${DB_PASSWORD:-perla}
POSTGRES_DB: ${DB_NAME:-fhl_database}
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- backend_net
backend:
build: .
container_name: logistics_api
restart: always
depends_on:
- postgres
ports:
- "3000:3000"
environment:
NODE_ENV: development
DB_USER: ${DB_USER:-david}
DB_PASSWORD: ${DB_PASSWORD:-perla}
DB_NAME: ${DB_NAME:-fhl_database}
DB_HOST: postgres
DB_PORT: 5432
JWT_SECRET: ${JWT_SECRET:-mi_super_secreta_clave_1234}
volumes:
- .:/app
- /app/node_modules
command: sh -c "npx ts-node src/server.ts"
networks:
- backend_net
networks:
backend_net:
volumes:
pgdata: