-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (40 loc) · 878 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (40 loc) · 878 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
version: '3.8'
services:
db:
image: postgres:13.3
ports:
- "5430:5432"
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: db
volumes:
- ./db/data/postgres:/var/lib/postgresql/data
db-test:
image: postgres:13.3
ports:
- "5431:5432"
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: db-test
volumes:
- ./db/data-test/postgres:/var/lib/postgresql/data
api:
build:
context: ./
target: dev
depends_on:
- db
- db-test
volumes:
- .:/src
command: sh -c "npm run start:dev"
ports:
- "3000:3000"
environment:
NODE_ENV: development
DB_URL: postgres://user:pass@db:5432/db
DB_TEST_URL: postgres://user:pass@db-test:5432/db-test
DEBUG: wisdo:*
restart: on-failure