-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
56 lines (52 loc) · 1.13 KB
/
docker-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
52
53
54
55
56
# This docker-compose file defines a PostgreSQL server and a metabase service
services:
metabase:
image: metabase/metabase:v0.48.0
restart: always
ports:
- 3000:3000
environment:
MB_DB_FILE: "/metabase-data/metabase.db"
volumes:
- ./metabase-data:/metabase-data
networks:
- metabase
depends_on:
postgres:
condition: service_healthy
datascraper:
image: renovate-datascraper:latest
build:
context: .
container_name: datascraper
restart: no
env_file: .env
environment:
PYTHONUNBUFFERED: "1"
networks:
- metabase
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:14.5
restart: always
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: metabase
POSTGRES_DB: metabase
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- metabase
healthcheck:
test: [ "CMD", "pg_isready", "-U", "metabase" ]
interval: 5s
timeout: 5s
retries: 5
networks:
metabase:
volumes:
postgres-data: