forked from gip-inclusion/carnet-de-bord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-test.yaml
41 lines (38 loc) · 1002 Bytes
/
docker-compose-test.yaml
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
version: '3.8'
services:
db_test:
image: postgres:11
environment:
- POSTGRES_DB=carnet_de_bord
- POSTGRES_USER=cdb
- POSTGRES_PASSWORD=test
ports:
# Use another port than the default pg one to
# be able to run tests while running the dev server
- '5433:5432'
volumes:
- cdb-pgdata-test:/var/lib/postgresql/data
restart: always
hasura_test:
image: cdb_hasura
build:
context: .
dockerfile: ./hasura/Dockerfile
extra_hosts:
host.docker.internal: host-gateway
volumes:
- ./hasura/migrations:/hasura-migrations
- ./hasura/metadata:/hasura-metadata
ports:
- '5001:8080'
depends_on:
- 'db_test'
restart: always
env_file:
- .env.test
environment:
HASURA_GRAPHQL_DEV_MODE: 'true'
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_ENABLE_TELEMETRY: 'false'
volumes:
cdb-pgdata-test: