-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (56 loc) · 2.12 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
version: '3.4'
services:
db:
image: library/postgres:13.2-alpine
container_name: starter_db
env_file: .env
ports:
- '5439:5432'
hasura:
# When updating the image version here, also update in db/hasura/Dockerfile (for deployed
# version) and the package hasura-cli in package.json.
image: hasura/graphql-engine:v2.0.10.cli-migrations-v3
container_name: starter_hasura
ports:
- '8089:8080'
depends_on:
- "db"
volumes:
- ./db/hasura/migrations:/hasura-migrations
env_file: .env
environment:
HASURA_GRAPHQL_DATABASE_URL: "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: anonymous
HASURA_GRAPHQL_NO_OF_RETRIES: 1000
HASURA_GRAPHQL_JWT_SECRET: "{\"jwk_url\": \"https://${REACT_APP_AUTH0_DOMAIN}/.well-known/jwks.json\", \"type\": \"RS256\", \"audience\": \"${REACT_APP_AUTH0_AUDIENCE}\", \"issuer\": \"https://${REACT_APP_AUTH0_DOMAIN}/\"}"
# restart: on-failure
pgadmin:
image: dpage/pgadmin4:5.1
container_name: starter_pgadmin
env_file: .env
depends_on:
- "em-db"
ports:
- "5409:80"
# Tried to predefine the DB server, which didn't work well on Windows
# https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html
# volumes:
# - "./utils/pgadmin-servers.json:/servers.json"
## It takes too long to compile (more than twice as long), we had better run it on host OS
## You would start it with command:
## start:docker: ts-node-dev --no-deps --transpile-only --respawn --poll --interval 1000 --ignore-watch node_modules --ignore-watch node_modules_docker src/main.ts
# api:
# image: node:10-alpine
# container_name: starter_api
# working_dir: /app
# command: yarn start:docker
# volumes:
# - ./bp-nestjs-starter:/app
# - ./bp-nestjs-starter/node_modules_docker:/app/node_modules
# ports:
# - "4141:4141"
# depends_on:
# - db
# environment:
# TYPEORM_URL: postgres://user:user@db:5432/seed