forked from kriasoft/graphql-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (39 loc) · 795 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (39 loc) · 795 Bytes
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
version: '2'
services:
api:
build:
context: .
dockerfile: ./Dockerfile.dev
restart: always
env_file: .env
links:
- postgres
- redis
ports:
- $PORT:$PORT
- '127.0.0.1:9229:9229' # V8 inspector
volumes:
- yarn:/root/.cache/yarn
- ./:/usr/src/app
working_dir: /usr/src/app
command: node scripts/run.js
postgres:
image: postgres:9.6.1-alpine
restart: always
read_only: true
tmpfs:
- /run/postgresql
- /tmp
volumes:
- postgres:/var/lib/postgresql/data
- ./scripts/postgres-init.sh:/docker-entrypoint-initdb.d/init.sh
redis:
image: redis:3.2.6-alpine
restart: always
read_only: true
volumes:
- redis:/data
volumes:
yarn:
postgres:
redis: