Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (67 loc) · 2.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
67 lines (67 loc) · 2.01 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
services:
api:
container_name: api
depends_on:
- postgres
env_file: .env
image: neuwflow/api:${UWFLOW_IMAGE_TAG:-latest}
ports:
- "127.0.0.1:${API_PORT}:${API_PORT}"
restart: always
frontend:
container_name: frontend
entrypoint: /nginx/run.sh
env_file: .env
image: neuwflow/frontend:${UWFLOW_IMAGE_TAG:-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' -p $POSTGRES_PORT
env_file: .env
image: postgres:15.19-alpine
ports:
- "127.0.0.1:${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.49.2.cli-migrations-v3
ports:
- "127.0.0.1:${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:${UWFLOW_IMAGE_TAG:-latest}
restart: always
email:
container_name: email
depends_on:
- postgres
env_file: .env
image: neuwflow/email:${UWFLOW_IMAGE_TAG:-latest}
restart: always
volumes:
postgres:
name: backend_postgres