-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (44 loc) · 887 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
version: "3.7"
services:
db:
image: postgres:13.1-alpine
env_file:
- .env
volumes:
- pg_data:/var/lib/postgresql/data:rw
ports:
- ${DATBASE_PORT:-5432}:5432
migrations:
image: $BASE_IMAGE_NODE_ALPINE
command: yarn dev
env_file:
- .env
working_dir: /apps/database
volumes:
- ./apps/database:/apps/database
depends_on:
- db
gql:
image: $BASE_IMAGE_NODE_ALPINE
command: yarn dev
working_dir: /apps/graphql
env_file:
- .env
volumes:
- ./apps/graphql:/apps/graphql
ports:
- ${GRAPHQL_PORT:-5000}:5000
depends_on:
- migrations
worker:
image: $BASE_IMAGE_NODE_ALPINE
command: yarn dev
working_dir: /apps/worker
env_file:
- .env
volumes:
- ./apps/worker:/apps/worker
depends_on:
- migrations
volumes:
pg_data: