-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstack.yml
70 lines (62 loc) · 1.37 KB
/
stack.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.5'
services:
postgres:
container_name: postgres_container
image: postgres
healthcheck:
test: /usr/bin/pg_isready
interval: 5s
timeout: 10s
retries: 120
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mypasswd
POSTGRES_DB: postgres
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
- ./init-user-db.sh:/docker-entrypoint-initdb.d/init-user-db.sh
ports:
- "5454:5432"
networks:
- postgres
restart: unless-stopped
load_app:
build: .
image: load_app
container_name: load_app_container
networks:
- postgres
volumes:
- .:/usr/src/app/
command: "python3 load_to_db.py"
depends_on:
postgres:
condition: service_healthy
metabase-app:
image: metabase/metabase
container_name: metabase_container
restart: always
ports:
- 3001:3000
volumes:
# declare your mount volume /host/dir:/container/dir
- ./metabase.db:/metabase.db
# environment:
# MB_DB_TYPE: postgres
# MB_DB_DBNAME: metabase
# MB_DB_PORT: 5432
# MB_DB_USER: metabase
# MB_DB_PASS: 1234567890
# MB_DB_HOST: postgres
depends_on:
postgres:
condition: service_healthy
links:
- postgres
networks:
- postgres
networks:
postgres:
volumes:
postgres: