-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
41 lines (41 loc) · 1.02 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
version: '3.7'
services:
prisma-studio:
container_name: prisma-studio
image: timothyjmiller/prisma-studio:latest
restart: unless-stopped
environment:
- POSTGRES_URL=postgresql://postgres:postgres@postgres/dev
ports:
- 5555:5555
links:
- postgres
postgres:
image: postgres:alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: .
dockerfile: packages/backend/dev.Dockerfile
volumes:
- ./packages/backend/src:/home/node/app/packages/backend/src
- ./packages/backend/prisma:/home/node/app/packages/backend/prisma
ports:
- 3000:3000
links:
- postgres
env_file:
- packages/backend/.env
environment:
- DATABASE_URL=postgresql://postgres:postgres@postgres/dev
command: pnpm dev:backend