-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
46 lines (43 loc) · 1.11 KB
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
networks:
proxy:
external:
name: proxy
volumes:
db-data:
services:
db:
image: postgres:13-alpine
restart: unless-stopped
command: postgres
environment:
POSTGRES_INITDB_ARGS: --data-checksums
env_file:
- ./.env
volumes:
- db-data:/var/lib/postgresql/data
graphql:
image: hasura/graphql-engine:v2.0.10
restart: unless-stopped
depends_on:
- db
expose:
- 80
command: >
/bin/sh -c "
graphql-engine serve \
--server-port 80
"
volumes:
- ./migrations:/hasura-migrations:ro
- ./metadata:/hasura-metadata:ro
networks:
- proxy
- default
environment:
VIRTUAL_HOST: api.benderfactory.com
LETSENCRYPT_HOST: api.benderfactory.com
HASURA_GRAPHQL_DATABASE_URL: postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@db:5432/$POSTGRES_DB
HASURA_GRAPHQL_JWT_SECRET: $HASURA_JWT_SECRET
HASURA_GRAPHQL_CORS_DOMAIN: https://vault.benderfactory.com,http://localhost:9695/
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: anonymous
HASURA_GRAPHQL_ADMIN_SECRET: $HASURA_GRAPHQL_ADMIN_SECRET