-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
66 lines (59 loc) · 1.1 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
58
59
60
61
62
63
64
65
66
services:
app-builder:
image: node:16
working_dir: /app
volumes:
- ./:/app
- npm_cache:/root/.npm
- yarn_cache:/usr/local/share/.cache
command: yarn build
depends_on:
- redis
- postgres
app-graphql:
extends:
service: app-builder
command: npx graphql-codegen --watch
app-server:
ports:
- 3000:3000
extends:
service: app-builder
command: yarn server
install:
extends:
service: app-builder
profiles:
- install
entrypoint:
- /bin/sh
- -c
command:
- |
set -e
yarn
npx prisma format
npx prisma generate
npx prisma migrate dev
npx graphql-codegen
redis:
image: redis:7
ports:
- 6379:6379
volumes:
- redis_data:/data
postgres:
image: postgres:14
environment:
POSTGRES_DB: cubedesk
POSTGRES_USER: root
POSTGRES_PASSWORD: root
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data:
redis_data:
npm_cache:
yarn_cache: