-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (54 loc) · 1.03 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '3.7'
services:
collation_db:
container_name: collation_db
profiles:
- dev
- prod
image: postgres
env_file:
- .env
environment:
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_USER=${DB_USER}
- POSTGRES_DB=${DB_NAME}
volumes:
- collation_data:/var/lib/postgresql/data
tty: true
ports:
- 5432:5432
collation_server:
container_name: collation_server
profiles:
- dev
- prod
build:
context: .
target: dev
env_file:
- .env
depends_on:
- collation_db
ports:
- 8000:8000
restart: unless-stopped
volumes:
- ./:/app/
- ./node_modules:/app/node_modules
command: bash -c "npx prisma generate && npm run start:dev"
db_seeder:
container_name: db_seeder
profiles:
- seed
build:
context: .
target: base
env_file:
- .env
depends_on:
- collation_db
ports:
- 8000:8000
# command: npm run seed
volumes:
collation_data: