-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
58 lines (56 loc) · 1.22 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
57
58
version: "3.7"
services:
postgres:
image: postgres:13
environment:
POSTGRES_PASSWORD: ${PG_PASSWORD}
ports:
- 5432:5432
volumes:
- ./.data:/home
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- postgres-storage:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U guest" ]
interval: 10s
timeout: 5s
retries: 5
metabase:
image: metabase/metabase
environment:
MB_JETTY_PORT: 80
MB_DB_FILE: "/metabase-data/metabase.db"
ports:
- 80:80
volumes:
- metabase-storage:/metabase-data
depends_on:
postgres:
condition: service_healthy
adminer:
image: adminer
restart: always
ports:
- 8765:8080
financials:
build: './financials/'
volumes:
- node_volumes:/usr/src/app/node_volumes
environment:
- POSTGRES_HOST=postgres
- POSTGRES_DB=station
- POSTGRES_PASSWORD=${PG_PASSWORD}
volumes:
metabase-storage:
driver: local
driver_opts:
o: bind
type: none
device: .data/metabase
postgres-storage:
driver: local
driver_opts:
o: bind
type: none
device: .data/postgres
node_volumes: