-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.local.yml
49 lines (45 loc) · 1.19 KB
/
docker-compose.local.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
version: "3"
services:
db:
container_name: db
image: postgres:14
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
networks:
- app_network
ports:
- "${DB_PORT}:${DB_PORT}"
volumes:
- ./db/docker-entrypoint-initdb.d/init-db.sql:/docker-entrypoint-initdb.d/init-db.sql
graphql-engine:
container_name: graphql
image: hasura/graphql-engine:v2.40.0
depends_on:
- "db"
restart: always
environment:
HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://${DB_USER}:${DB_PASSWORD}@db:${DB_PORT}/fileonchain
HASURA_GRAPHQL_ENABLE_CONSOLE: "false"
HASURA_GRAPHQL_DEV_MODE: "true"
# HASURA_GRAPHQL_CONSOLE_ASSETS_DIR: /srv/console-assets
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: visitor
HASURA_GRAPHQL_STRINGIFY_NUMERIC_TYPES: "true"
networks:
- app_network
ports:
- "8080:8080"
command:
- graphql-engine
- serve
smtp:
container_name: smtp
image: mailhog/mailhog
networks:
- app_network
ports:
- "1025:1025" # SMTP server
- "8025:8025" # Web UI
networks:
app_network:
driver: bridge