-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 883 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (40 loc) · 883 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
version: '3.8'
services:
api:
image: node:22.13.1-alpine
container_name: m-care-api
build:
context: .
dockerfile: dockerfile
target: development
env_file:
- .env
command: sh -c "pnpm install && pnpm db:migrate && pnpm start:dev "
ports:
- ${NEST_API_PORT}:${NEST_API_PORT}
- 9229:9229
networks:
my_network:
depends_on:
- postgres
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
restart: always
postgres:
image: postgres:16-alpine
container_name: m-care-db
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
PG_DATA: /var/lib/postgresql/data
ports:
- '5434:5432'
networks:
my_network:
restart: always
networks:
my_network:
volumes:
api_db_data: