sdadfadas
/
docker-compose-image-tag.yml
128 строк · 3.9 Кб
1#
2# Licensed to the Apache Software Foundation (ASF) under one or more
3# contributor license agreements. See the NOTICE file distributed with
4# this work for additional information regarding copyright ownership.
5# The ASF licenses this file to You under the Apache License, Version 2.0
6# (the "License"); you may not use this file except in compliance with
7# the License. You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17
18# -----------------------------------------------------------------------
19# We don't support docker-compose for production environments.
20# If you choose to use this type of deployment make sure to
21# create you own docker environment file (docker/.env) with your own
22# unique random secure passwords and SECRET_KEY.
23# -----------------------------------------------------------------------
24x-superset-image: &superset-image apachesuperset.docker.scarf.sh/apache/superset:${TAG:-latest}
25x-superset-depends-on: &superset-depends-on
26- db
27- redis
28x-superset-volumes:
29&superset-volumes # /app/pythonpath_docker will be appended to the PYTHONPATH in the final container
30- ./docker:/app/docker
31- superset_home:/app/superset_home
32
33version: "3.7"
34services:
35redis:
36image: redis:7
37container_name: superset_cache
38restart: unless-stopped
39volumes:
40- redis:/data
41
42db:
43env_file:
44- path: docker/.env # default
45required: true
46- path: docker/.env-local # optional override
47required: false
48image: postgres:15
49container_name: superset_db
50restart: unless-stopped
51volumes:
52- db_home:/var/lib/postgresql/data
53- ./docker/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
54
55superset:
56env_file:
57- path: docker/.env # default
58required: true
59- path: docker/.env-local # optional override
60required: false
61image: *superset-image
62container_name: superset_app
63command: ["/app/docker/docker-bootstrap.sh", "app-gunicorn"]
64user: "root"
65restart: unless-stopped
66ports:
67- 8088:8088
68depends_on: *superset-depends-on
69volumes: *superset-volumes
70
71superset-init:
72image: *superset-image
73container_name: superset_init
74command: ["/app/docker/docker-init.sh"]
75env_file:
76- path: docker/.env # default
77required: true
78- path: docker/.env-local # optional override
79required: false
80depends_on: *superset-depends-on
81user: "root"
82volumes: *superset-volumes
83healthcheck:
84disable: true
85
86superset-worker:
87image: *superset-image
88container_name: superset_worker
89command: ["/app/docker/docker-bootstrap.sh", "worker"]
90env_file:
91- path: docker/.env # default
92required: true
93- path: docker/.env-local # optional override
94required: false
95restart: unless-stopped
96depends_on: *superset-depends-on
97user: "root"
98volumes: *superset-volumes
99healthcheck:
100test:
101[
102"CMD-SHELL",
103"celery -A superset.tasks.celery_app:app inspect ping -d celery@$$HOSTNAME",
104]
105
106superset-worker-beat:
107image: *superset-image
108container_name: superset_worker_beat
109command: ["/app/docker/docker-bootstrap.sh", "beat"]
110env_file:
111- path: docker/.env # default
112required: true
113- path: docker/.env-local # optional override
114required: false
115restart: unless-stopped
116depends_on: *superset-depends-on
117user: "root"
118volumes: *superset-volumes
119healthcheck:
120disable: true
121
122volumes:
123superset_home:
124external: false
125db_home:
126external: false
127redis:
128external: false
129