forked from UWFlow/uwflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (68 loc) · 1.88 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
version: '3.6'
services:
api:
container_name: api
depends_on:
- postgres
env_file: .env
image: neuwflow/api:latest
ports:
- $API_PORT:$API_PORT
restart: always
frontend:
container_name: frontend
entrypoint: /nginx/run.sh
env_file: .env
image: neuwflow/frontend:latest
ports:
- $NGINX_HTTP_PORT:$NGINX_HTTP_PORT
- $NGINX_HTTPS_PORT:$NGINX_HTTPS_PORT
restart: always
volumes:
- ./nginx:/nginx:ro
- ./.ssl:/ssl:ro
postgres:
container_name: postgres
command: postgres -c 'max_connections=256'
env_file: .env
image: postgres:15-alpine
ports:
- $POSTGRES_PORT:$POSTGRES_PORT
restart: always
volumes:
- postgres:/var/lib/postgresql/data
hasura:
container_name: hasura
depends_on:
- postgres
environment:
HASURA_GRAPHQL_ADMIN_SECRET: $HASURA_GRAPHQL_ADMIN_SECRET
HASURA_GRAPHQL_DATABASE_URL: postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST:$POSTGRES_PORT/$POSTGRES_DB
HASURA_GRAPHQL_ENABLE_CONSOLE: "false" # Must be run manually to track migrations
HASURA_GRAPHQL_ENABLE_TELEMETRY: "false" # Why is this even enabled by default?!
HASURA_GRAPHQL_JWT_SECRET: '{"type": "HS256", "key": "${HASURA_GRAPHQL_JWT_KEY}"}'
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: $HASURA_GRAPHQL_UNAUTHORIZED_ROLE
image: hasura/graphql-engine:v2.25.1.cli-migrations-v3
ports:
- $HASURA_PORT:$HASURA_PORT
restart: always
volumes:
- ./hasura/migrations:/hasura-migrations
- ./hasura/metadata:/hasura-metadata
uw:
container_name: uw
depends_on:
- postgres
env_file: .env
image: neuwflow/uw:latest
restart: always
email:
container_name: email
depends_on:
- postgres
env_file: .env
image: neuwflow/email:latest
restart: always
volumes:
postgres:
name: backend_postgres