-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.superset.yaml
38 lines (34 loc) · 1.03 KB
/
docker-compose.superset.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
networks:
default:
name: cartolafc_network
services:
superset:
build: superset
depends_on:
- superset_postgres
environment:
- SUPERSET_SQL_ALCHEMY=postgresql+psycopg2://superset:superset@superset_postgres:5432/superset
healthcheck:
test: curl --fail http://localhost:8088 || exit 1
ports:
- 8088:8088
volumes:
- ./config:/etc/hive
superset_postgres:
environment:
POSTGRES_USER: superset
POSTGRES_PASSWORD: superset
POSTGRES_DB: superset
healthcheck:
test: pg_isready -U postgres
image: postgres:13-alpine
superset_setup:
build: superset
command: ./create-dashboards.sh
depends_on:
- superset
environment:
- SUPERSET_SQL_ALCHEMY=postgresql+psycopg2://superset:superset@superset_postgres:5432/superset
volumes:
- ./superset/dashboards:/opt/superset/dashboards
version: '3.8'