-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1.32 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
version: '3.4'
networks:
external:
external: true
name: public
volumes:
members-db:
services:
app:
image: wolbodo/members:latest
restart: always
depends_on:
- graphql
networks: [external, default]
command: node .
expose:
- 80
env_file: .env
environment:
PUBLIC_GRAPHQL_ENDPOINT: https://graphql.wolbodo.nl/v1/graphql
PORT: 80
VIRTUAL_HOST: members.wolbodo.nl, member.wolbodo.nl, people.wolbodo.nl, mensen.wolbodo.nl, menschen.wolbodo.nl, leden.wolbodo.nl
CERT_NAME: wildcard
db:
image: postgres:15-alpine
restart: unless-stopped
command: postgres
environment:
POSTGRES_INITDB_ARGS: --data-checksums
env_file: .env
volumes:
- members-db:/var/lib/postgresql/data
graphql:
image: hasura/graphql-engine:v2.21.0
restart: unless-stopped
networks: [external, default]
depends_on:
- db
expose:
- 80
env_file: .env
command: >
/bin/sh -c "
graphql-engine serve --server-port 80 --enable-console
"
volumes:
- ./migrations:/hasura-migrations:ro
- ./metadata:/hasura-metadata:ro
environment:
VIRTUAL_HOST: graphql.wolbodo.nl
CERT_NAME: wildcard
HASURA_GRAPHQL_DATABASE_URL: postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@db:5432/$POSTGRES_DB