forked from dbt-labs/dbt-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (33 loc) · 777 Bytes
/
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
##
# This compose file is used for local development and adapter testing only.
# See `/docker` for a generic and production-ready docker file
##
version: "3.5"
services:
database:
image: postgres
environment:
POSTGRES_USER: "root"
POSTGRES_PASSWORD: "password"
POSTGRES_DB: "dbt"
ports:
- "5432:5432"
test:
build:
context: .
dockerfile: Dockerfile.test
args:
# Run `make .env` to set $USER_ID and $GROUP_ID
USER_ID: ${USER_ID:-}
GROUP_ID: ${GROUP_ID:-}
command: "/root/.virtualenvs/dbt/bin/pytest"
environment:
POSTGRES_TEST_HOST: "database"
volumes:
- .:/usr/app
working_dir: /usr/app
depends_on:
- database
networks:
default:
name: dbt-net