-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (46 loc) · 1.08 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
version: '3'
services:
magic:
image: mageai/mageai:latest
command: >
sh -c "mage start ${PROJECT_NAME} &&
cp ./home/src/duckdb_pipeline ./home/src/${PROJECT_NAME}/dbt"
env_file:
- .env
build:
context: .
dockerfile: MageDockerfile
environment:
USER_CODE_PATH: /home/src/${PROJECT_NAME}
ports:
- 6789:6789
volumes:
- .:/home/src/
restart: on-failure:5
metabase_backend:
image: postgres:14
hostname: backend
container_name: backend
env_file:
- ./env_files/metabase_backend/.env
volumes:
- "./metaduck_backend:/var/lib/postgresql/data:rw"
ports:
- "5433:5432"
metaduck:
container_name: metaduck
image: metaduck:latest
build:
context: .
dockerfile: MetabaseDockerfile
tags:
- metaduck:latest
env_file:
- ./env_files/metabase/.env
# Mount duckdb database to metabase container
volumes:
- "./duckdb_files:/container/directory"
ports:
- "3000:3000"
depends_on:
- metabase_backend