-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
48 lines (43 loc) · 1.3 KB
/
docker-compose.dev.yml
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
45
46
47
48
version: '3.9'
services:
api:
build:
dockerfile: Dockerfile.dev
context: .
# Only will build development stage from our dockerfile
target: development
# Mount our host Directory to the docker container
# Mount (.) current directory to the docker container /usr/src/app
# reflect file changes from host to container
volumes:
- .:/usr/src/app
container_name: api_say_nest
depends_on:
- say_nest_db
environment:
# DATABASE_URL: postgres://postgres:postgres@say_nest_db:5432/say_nest
NODE_ENV: docker-local
# PORT: 8002
ports:
# containar : local server
- 5000:8002
# debugging port
- 9229:9229
command: npm run start:dev
say_nest_db:
image: postgres:10.4
container_name: postgresql_say_nest
environment:
POSTGRES_PASSWORD: 'postgres'
POSTGRES_USER: 'postgres'
POSTGRES_DB: 'say_nest'
PORT: 5432
restart: always
volumes:
- "./data/postgres:/var/lib/postgresql/data"
ports:
- "35000:5432"
command: postgres -c listen_addresses='*'
volumes:
postgres:
pgadmin: