-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 835 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (35 loc) · 835 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
version: '3.8'
services:
postgres:
container_name: postgres
image: postgres:13
volumes:
- postgres_volume:/var/lib/postgresql/data
- ./dockerConfig/postgres-dev-init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
property-market-api:
container_name: property-market-api
restart: always
depends_on:
- postgres
build:
context: .
target: dependencies
ports:
- ${PORT}:${PORT}
- 9229:9229
env_file:
- .env
environment:
PG_HOST: postgres
PG_USER: postgres
PG_PASSWORD: postgres
volumes:
- ./:/home/node/app
command: dumb-init node ace serve --watch --node-args="--inspect=0.0.0.0"
volumes:
postgres_volume: