feat(docker): Build containers for Jaffle shop project
This commit is contained in:
25
docker-compose.yml
Normal file
25
docker-compose.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
postgres:
|
||||
container_name: postgres
|
||||
image: postgres:15.2-alpine
|
||||
environment:
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
ports:
|
||||
- 5432
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
dbt:
|
||||
container_name: dbt
|
||||
build: .
|
||||
image: dbt-jaffle-shop
|
||||
volumes:
|
||||
- ./:/usr/src/dbt
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
Reference in New Issue
Block a user