-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (36 loc) · 943 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (36 loc) · 943 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
services:
api:
build:
dockerfile: Dockerfile
context: .
volumes:
- .:/usr/src/app
container_name: api_say_nest
depends_on:
- say_nest_db
environment:
NODE_ENV: production
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: