-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (58 loc) · 1.35 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
version: '3.7'
x-superset-depends-on: &superset-depends-on
- postgres
- redis
x-final-depends-on: &final-depends-on
- superset
- worker
x-superset-volumes: &superset-volumes
- ./superset:/app/superset
services:
nginx:
image: nginx:latest
depends_on: *final-depends-on
ports:
- "80:80"
volumes:
- ./nginx:/etc/nginx/conf.d
redis:
image: redis
restart: always
volumes:
- redis:/data
postgres:
image: postgres
restart: always
environment:
POSTGRES_DB: ${POSTGRES_DB:-superset}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-superset}
POSTGRES_USER: ${POSTGRES_USER:-superset}
volumes:
- postgres:/var/lib/postgresql/data
superset:
image: amancevice/superset
restart: always
depends_on: *superset-depends-on
ports:
- "8088:8088"
volumes:
- ./superset:/etc/superset
worker:
image: amancevice/superset
restart: always
depends_on: *superset-depends-on
volumes:
- ./superset:/etc/superset
command: "celery worker --app=superset.tasks.celery_app:app"
flower:
image: amancevice/superset
restart: always
depends_on: *final-depends-on
ports:
- "5555:5555"
volumes:
- ./superset:/etc/superset
command: celery flower --app=superset.tasks.celery_app:app
volumes:
postgres:
redis: