This repository has been archived by the owner on Feb 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (75 loc) · 1.84 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
version: "3.8"
services:
postgis:
image: "postgis/postgis:12-3.1-alpine"
restart: "unless-stopped"
networks:
jore:
aliases:
- postgis
environment:
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:-postgres}"
healthcheck:
test: ["CMD", "pg_isready", "-q", "-U", "${POSTGRES_USER:-postgres}"]
interval: 30s
start_period: 5s
timeout: 10s
retries: 3
hasura:
image: "hasura/graphql-engine:v1.3.3.cli-migrations-v2"
depends_on:
postgis:
condition: "service_healthy"
restart: "unless-stopped"
networks:
jore:
aliases:
- hasura
ports:
- "8080:8080"
environment:
HASURA_GRAPHQL_ADMIN_SECRET: "${HASURA_GRAPHQL_ADMIN_SECRET:-hasura-admin-secret-key}"
HASURA_GRAPHQL_DATABASE_URL: "postgres://postgres:${POSTGRES_PASSWORD:-postgres}@postgis:5432/postgres"
HASURA_GRAPHQL_ENABLE_CONSOLE: "false"
HASURA_GRAPHQL_ENABLE_TELEMETRY: "false"
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: "anonymous"
volumes:
- "./hasura/migrations:/hasura-migrations"
- "./hasura/metadata:/hasura-metadata"
healthcheck:
test: ["CMD", "wget", "-O", "-", "-q", "http://localhost:8080/healthz"]
interval: 30s
start_period: 5s
timeout: 10s
retries: 3
frontend:
networks:
jore:
aliases:
- frontend
build:
context: "./frontend"
dockerfile: "Dockerfile"
depends_on:
hasura:
condition: "service_healthy"
restart: "unless-stopped"
ports:
- "3000:80"
proxy:
depends_on:
- hasura
- frontend
image: nginx:alpine
volumes:
- $PWD/default.conf:/etc/nginx/conf.d/default.conf
networks:
jore:
aliases:
- proxy
ports:
- 1234:80
networks:
jore:
name: jore_network