-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 892 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 892 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
43
44
version: '3'
services:
db:
image: postgres:13.3-alpine
ports:
- "5432:5432"
volumes:
- ./db/dumps:/app-db-dumps
environment:
POSTGRES_USER: dev_user
POSTGRES_PASSWORD: dev_pass
POSTGRES_DB: dev_db
db_test:
image: postgres:13.3-alpine
ports:
- "5433:5432"
volumes:
- ./db/dumps:/app-db-dumps
environment:
POSTGRES_USER: test_user
POSTGRES_PASSWORD: test_pass
POSTGRES_DB: test_db
web:
build: .
restart: always
depends_on:
- db
ports:
- '4000:4000'
environment:
DATABASE_URL: "postgres://dev_user:dev_pass@db:5432/dev_db?schema=public"
migration:
build: .
command: npm run migrate:generate
volumes:
- .:/code
depends_on:
- db
environment:
DATABASE_URL: "postgres://dev_user:dev_pass@db:5432/dev_db?schema=public"