generated from cds-snc/project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
90 lines (83 loc) · 2.04 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
x-superset-build:
&superset-build
context: ./docker
dockerfile: Dockerfile
x-superset-depends-on: &superset-depends-on
- db
- redis
x-superset-env:
&superset-env
- path: docker/.env.local
required: true
x-superset-volumes:
&superset-volumes
- ./docker:/app/docker
- superset_home:/app/superset_home
services:
redis:
image: redis:7
container_name: superset_cache
restart: unless-stopped
volumes:
- redis:/data
db:
env_file: *superset-env
image: postgres:15
container_name: superset_db
restart: unless-stopped
volumes:
- db_home:/var/lib/postgresql/data
superset:
build: *superset-build
env_file: *superset-env
container_name: superset_app
command: ["/app/docker/docker-bootstrap.sh", "app"]
user: "root"
restart: unless-stopped
ports:
- 8088:8088
depends_on: *superset-depends-on
volumes: *superset-volumes
superset-init:
build: *superset-build
env_file: *superset-env
container_name: superset_init
command: ["/app/docker/docker-init.sh"]
depends_on: *superset-depends-on
user: "root"
volumes: *superset-volumes
healthcheck:
disable: true
superset-worker:
build: *superset-build
env_file: *superset-env
container_name: superset_worker
command: ["/app/docker/docker-bootstrap.sh", "worker"]
restart: unless-stopped
depends_on: *superset-depends-on
user: "root"
volumes: *superset-volumes
healthcheck:
test:
[
"CMD-SHELL",
"celery -A superset.tasks.celery_app:app inspect ping -d celery@$$HOSTNAME",
]
superset-worker-beat:
build: *superset-build
env_file: *superset-env
container_name: superset_worker_beat
command: ["/app/docker/docker-bootstrap.sh", "beat"]
restart: unless-stopped
depends_on: *superset-depends-on
user: "root"
volumes: *superset-volumes
healthcheck:
disable: true
volumes:
superset_home:
external: false
db_home:
external: false
redis:
external: false