-
Notifications
You must be signed in to change notification settings - Fork 27
/
docker-compose.yml
64 lines (56 loc) · 1.81 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
version: '2.4'
services:
# The Apollo service
apollo:
image: lambdaschoollabs/beerthoven-apollo:latest
build:
context: ./apollo
dockerfile: Dockerfile
command: sh -c "yarn global add nodemon && nodemon -v && NODE_ENV=development nodemon -V -L src/index.js"
cpus: '0.25'
mem_limit: 250M
volumes:
- ./apollo/src:/app/src:delegated
- ./apollo/schema:/app/schema:delegated
ports:
- '${APOLLO_LISTEN_PORT:-8000}:${APOLLO_LISTEN_PORT:-8000}'
environment:
# The port for Apollo to listen to
PORT: '${APOLLO_LISTEN_PORT:-8000}'
# The path for the Apollo GraphQL API
GRAPHQL_API_PATH: ${APOLLO_API_PATH:-/api/graphql}
JWKS_URI: ${APOLLO_JWKS_URI}
JWT_ISSUER: ${APOLLO_JWT_ISSUER}
PRISMA_ENDPOINT: http://prisma:${PRISMA_LISTEN_PORT:-7000}
PRISMA_SECRET: ${PRISMA_SECRET:?You must specify PRISMA_SECRET}
LOG_LEVEL: ${LOG_LEVEL:-debug}
# The Prisma service
prisma:
image: prismagraphql/prisma:1.34
cpus: '0.25'
mem_limit: 250M
ports:
- '${PRISMA_LISTEN_PORT:-7000}:${PRISMA_LISTEN_PORT:-7000}'
environment:
PRISMA_CONFIG: |
port: ${PRISMA_LISTEN_PORT:-7000}
managementApiSecret: ${PRISMA_MANAGEMENT_API_SECRET:?You must specify PRISMA_MANAGEMENT_API_SECRET}
databases:
default:
connector: postgres
host: postgres
port: 5432
user: ${POSTGRES_USER:-prisma}
password: ${POSTGRES_PASSWORD:-prisma}
# The Postgres service
postgres:
image: postgres:10.3
cpus: '0.25'
mem_limit: 250M
environment:
POSTGRES_USER: ${POSTGRES_USER:-prisma}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-prisma}
volumes:
- postgres:/var/lib/postgresql-prisma/data:delegated
volumes:
postgres: ~