-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
72 lines (71 loc) · 1.49 KB
/
docker-compose.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
71
72
# Services Included in the docker compose:
# 1. Redis (Async message broker, using workzeug)
# 2. Postgres (Metadata DB)
# 3. Superset
# 4. Celery Worker (Async task queue)
# 5. Celery flower (Monitoring)
version: '3'
services:
redis:
image: "redis:${REDIS_TAG}"
restart: always
ports:
- "6379:6379"
volumes:
- redis:/data
postgres:
image: "postgres:${POSTGRES_TAG}"
restart: always
environment:
POSTGRES_DB: superset
POSTGRES_PASSWORD: superset
POSTGRES_USER: superset
ports:
- "5432:5432"
volumes:
- postgres:/var/lib/postgresql/data
superset:
build:
context: .
dockerfile: Dockerfile
image: "${IMAGE_NAME}"
restart: always
depends_on:
- postgres
- redis
environment:
MAPBOX_API_KEY: ${MAPBOX_API_KEY}
ports:
- "8088:8088"
volumes:
- ./superset:/etc/superset
worker:
image: amancevice/superset
restart: always
depends_on:
- postgres
- redis
- superset
environment:
MAPBOX_API_KEY: ${MAPBOX_API_KEY}
volumes:
- ./superset:/etc/superset
command: celery worker
flower:
image: amancevice/superset
restart: always
depends_on:
- postgres
- redis
- superset
- worker
ports:
- "5555:5555"
volumes:
- ./superset:/etc/superset
command: celery flower --app=superset.tasks.celery_app:app
volumes:
postgres:
external: false
redis:
external: false