forked from placemark/placemark
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
55 lines (53 loc) · 1007 Bytes
/
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
version: "3"
services:
db:
image: postgres:16.1
container_name: placemark-db
restart: always
env_file:
- .env.local
volumes:
- db:/var/lib/postgresql/data
# ports:
# - 5432:5432
networks:
- placemark
web: &web
build:
context: .
dockerfile: dev.Dockerfile
container_name: placemark-web
restart: unless-stopped
env_file:
- .env.local
volumes:
- .:/app
user: node
command: /bin/sh -c 'blitz prisma migrate deploy && blitz prisma generate && pnpm run dev'
ports:
- 3000:3000
depends_on:
- db
networks:
- placemark
prisma:
<<: *web
container_name: placemark-studio
restart: unless-stopped
command: >
/bin/sh -c '
pnpm run prisma migrate dev &&
pnpm run studio
'
ports:
- 5555:5555
depends_on:
- db
networks:
- placemark
volumes:
db:
driver: local
networks:
placemark:
driver: bridge