-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
51 lines (45 loc) · 1.34 KB
/
compose.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
42
43
44
45
46
47
48
49
50
51
version: "3.9"
services:
consid_postgres:
container_name: consid_postgres
image: postgres:15.2-alpine
environment:
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432" # postgresql ports
- "3000:3000" # metabase ports
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
volumes:
- consid_dbt:/var/lib/postgresql/data
consid_dbt:
container_name: consid_dbt
build:
context: .
dockerfile: Dockerfile
args:
# On Linux, you may need to update USER_UID and USER_GID below
# if not your local UID is not 1000.
USER_UID: 1000
USER_GID: 1000
image: consid_dbt
volumes:
- .:/usr/src/consid_dbt:cached
depends_on:
consid_postgres:
condition: service_healthy
# Overrides default command so things don't shut down after the process ends.
command: sleep infinity
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
network_mode: service:consid_postgres
# Uncomment the next line to use a non-root user for all processes.
user: vscode
consid_metabase:
image: metabase/metabase
container_name: consid_metabase
network_mode: service:consid_postgres
volumes:
consid_dbt: