-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
40 lines (39 loc) · 948 Bytes
/
docker-compose.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
version: "3.7"
services:
nest-unit-tests-api:
build:
context: .
target: development
volumes:
- /usr/src/app/dist
- /usr/src/app/node_modules
- .:/usr/src/app
ports:
- ${PORT}:${PORT}
- 9229:9229
command: npm run start:dev
env_file:
- .env
networks:
- nest-unit-tests-network
depends_on:
- nest-unit-tests-postgres
nest-unit-tests-postgres:
restart: always
image: postgres:12
command: -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c random_page_cost=1.0
networks:
- nest-unit-tests-network
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: username
POSTGRES_DB: nest-unit-tests
PG_DATA: /var/lib/postgresql/data
ports:
- 5432:5432
volumes:
- nest-unit-tests-pgdata:/var/lib/postgresql/data
networks:
nest-unit-tests-network:
volumes:
nest-unit-tests-pgdata: