-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
67 lines (66 loc) · 2.64 KB
/
docker-compose.yaml
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
version: '2'
services:
postgres:
image: postgres:12
restart: always
environment:
POSTGRES_PASSWORD: $POSTGRESSPWD
volumes:
- db_data:/var/lib/postgresql/data
graphql-engine:
# image: fedormelexin/graphql-engine-arm64:latest
image: hasura/graphql-engine:latest.cli-migrations-v3
volumes:
- ./init/metadata:/hasura-metadata
- ./init/migrations:/hasura-migrations
ports:
- "8080:8080"
depends_on:
- "postgres"
restart: always
expose:
- "8080"
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:$POSTGRESSPWD@postgres:5432/postgres
HASURA_GRAPHQL_ACCESS_KEY: $SECRET
HASURA_GRAPHQL_JWT_SECRET: '{"type": "RS512", "key": "-----BEGIN CERTIFICATE-----\nMIIDDTCCAfWgAwIBAgIJYjHDiyyFbjVuMA0GCSqGSIb3DQEBCwUAMCQxIjAgBgNV\nBAMTGWRldi1sZW9kb3JoOS51cy5hdXRoMC5jb20wHhcNMjExMDAxMDcxNzEzWhcN\nMzUwNjEwMDcxNzEzWjAkMSIwIAYDVQQDExlkZXYtbGVvZG9yaDkudXMuYXV0aDAu\nY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtHX5+f0K+HcWjb1D\n4kmHu0Wl5xTnAmbONNVeCFd7SUWE2n5x0NlFb8VCcpQsU5L6ka7wc39eoX89kO0W\nLsFYnfrSV7Zf1dstNaPvL0r7oamcQnNz6GQW7x4NxgU52ddXcqcML4vdUuy6Nyk0\nLD2HqRR9mAc9Ym8PzsbO0U3ShcdWI6ahguedXvcmPbBfl3Iwjs4dtUuDAoSPsrkq\nyEFkBnr+DKU2ho51hH4cCed+73b/lnrec9rvK9d2ST3pTfdQFUr/EJzprB1pxi4K\nHvwmoeX/NlYvgKXEUP+ZntG7kG+qQ3RZCHmgYHHSxEuvbL5SdEkS1PcwEMWGlXMW\nZeZ0MQIDAQABo0IwQDAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTRuvpOPkN/\nB3J9xrxZnGXtMGf2RDAOBgNVHQ8BAf8EBAMCAoQwDQYJKoZIhvcNAQELBQADggEB\nAD0LjRrqA/TdlL3VRqFN0rVKSMfo3if39icQv0pz+re0EpH9eAEgt8r7TsDWvK+G\neLv2ogUtgmlhReStQk3ewW9v4vLEKifO8TNg83IHh4hM00bDS9Oztc+Mj4yDbF55\nil38B7EzAgs4Zhj/04BUoNjpAInJO9Yv9stYtGlq+EPPMtYPZgb+CrItD6ZCEeVh\nK8lztU3uIeSsCml/6jaCjG0rdnFqbRnapX00MTQkyHF+ymRjE0ZFj+MvD2eRMHZD\nrV7KlrWLIgcPJI+N23J2Bn3VGWfRWibnoPxa5upfnNO+04VrEDrH/KAd+0jdGTIi\nG66IRTdj7PZs+2fcIs/llQ4=\n-----END CERTIFICATE-----"}'
command:
- graphql-engine
- serve
nginx:
image: nginx:latest
container_name: webserver
depends_on:
- "graphql-engine"
- "express"
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./ssl/:/ssl/
- ./frontend/build/:/www/data
populator:
build: ./populate/
ports:
- "5683:5683/udp"
depends_on:
- "graphql-engine"
- "express"
restart: always
expose:
- "5683"
environment:
HASURA_API: http://graphql-engine:8080/v1alpha1/graphql
HASURA_GRAPHQL_ACCESS_KEY: $SECRET
PUSHER: http://express:3001/push
express:
build: ./react-backend/
ports:
- "3001:3001"
restart: always
expose:
- "3001"
volumes:
db_data: