-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prisma.yml
53 lines (52 loc) · 992 Bytes
/
docker-compose.prisma.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
version: '3.8'
services:
node_backend:
container_name: node_backend
build:
context: .
dockerfile: Dockerfile
target: base
links:
- postgres-db
environment:
- NODE_ENV=development
env_file:
- .env
volumes:
- ./src:/home/node/app/src
- ./nodemon.json:/home/node/app/nodemon.json
- /home/node/app/prisma
ports:
- '${PORT}:${PORT}'
expose:
- ${PORT}
command: npm run dev
prisma:
container_name: prisma
links:
- postgres-db
depends_on:
- postgres-db
ports:
- '5555:5555'
build:
context: prisma
dockerfile: Dockerfile
env_file:
- .env
volumes:
- /home/node/app/prisma
postgres-db:
container_name: postgres-db
image: 'postgres:14'
restart: always
env_file:
- .env
expose:
- '5433'
ports:
- '5433:5432'
volumes:
- ./pgdata:/var/lib/postgresql/data
volumes:
postgres: