-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathdocker-compose.yml
63 lines (58 loc) · 1.56 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
version: '3'
services:
app:
build: .
env_file:
- .env
depends_on:
- db
- broker
ports:
- ${APP_PORT}:3000
db:
container_name: db
image: postgres:14
env_file:
- .env
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
ports:
- 5432:5432
volumes:
- ./scripts/1-init.sql:/docker-entrypoint-initdb.d/1-init.sql
- pgdata:/var/lib/postgresql/data
gql:
image: hasura/graphql-engine:v2.25.1
ports:
- 15003:8080
env_file:
- .env
environment:
HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
HASURA_GRAPHQL_DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
HASURA_GRAPHQL_ENABLE_CONSOLE: 'true' # set to "false" to disable console
HASURA_GRAPHQL_DEV_MODE: 'true'
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_ADMIN_SECRET}
depends_on:
- db
restart: always
broker:
container_name: broker
image: bitnami/rabbitmq
environment:
- RABBITMQ_USERNAME=${RABBITMQ_USERNAME}
- RABBITMQ_PASSWORD=${RABBITMQ_PASSWORD}
- RABBITMQ_DISK_FREE_RELATIVE_LIMIT=${RABBITMQ_DISK_FREE_RELATIVE_LIMIT}
ports:
- 4369:4369
- 5672:5672
- 25672:25672
- 15672:15672
volumes:
- broker:/bitnami
volumes:
pgdata:
broker: