sdadfadas

Форк
0
/
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
# -----------------------------------------------------------------------
24
x-superset-image: &superset-image apachesuperset.docker.scarf.sh/apache/superset:${TAG:-latest}
25
x-superset-depends-on: &superset-depends-on
26
  - db
27
  - redis
28
x-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

33
version: "3.7"
34
services:
35
  redis:
36
    image: redis:7
37
    container_name: superset_cache
38
    restart: unless-stopped
39
    volumes:
40
      - redis:/data
41

42
  db:
43
    env_file:
44
      - path: docker/.env # default
45
        required: true
46
      - path: docker/.env-local # optional override
47
        required: false
48
    image: postgres:15
49
    container_name: superset_db
50
    restart: unless-stopped
51
    volumes:
52
      - db_home:/var/lib/postgresql/data
53
      - ./docker/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
54

55
  superset:
56
    env_file:
57
      - path: docker/.env # default
58
        required: true
59
      - path: docker/.env-local # optional override
60
        required: false
61
    image: *superset-image
62
    container_name: superset_app
63
    command: ["/app/docker/docker-bootstrap.sh", "app-gunicorn"]
64
    user: "root"
65
    restart: unless-stopped
66
    ports:
67
      - 8088:8088
68
    depends_on: *superset-depends-on
69
    volumes: *superset-volumes
70

71
  superset-init:
72
    image: *superset-image
73
    container_name: superset_init
74
    command: ["/app/docker/docker-init.sh"]
75
    env_file:
76
      - path: docker/.env # default
77
        required: true
78
      - path: docker/.env-local # optional override
79
        required: false
80
    depends_on: *superset-depends-on
81
    user: "root"
82
    volumes: *superset-volumes
83
    healthcheck:
84
      disable: true
85

86
  superset-worker:
87
    image: *superset-image
88
    container_name: superset_worker
89
    command: ["/app/docker/docker-bootstrap.sh", "worker"]
90
    env_file:
91
      - path: docker/.env # default
92
        required: true
93
      - path: docker/.env-local # optional override
94
        required: false
95
    restart: unless-stopped
96
    depends_on: *superset-depends-on
97
    user: "root"
98
    volumes: *superset-volumes
99
    healthcheck:
100
      test:
101
        [
102
          "CMD-SHELL",
103
          "celery -A superset.tasks.celery_app:app inspect ping -d celery@$$HOSTNAME",
104
        ]
105

106
  superset-worker-beat:
107
    image: *superset-image
108
    container_name: superset_worker_beat
109
    command: ["/app/docker/docker-bootstrap.sh", "beat"]
110
    env_file:
111
      - path: docker/.env # default
112
        required: true
113
      - path: docker/.env-local # optional override
114
        required: false
115
    restart: unless-stopped
116
    depends_on: *superset-depends-on
117
    user: "root"
118
    volumes: *superset-volumes
119
    healthcheck:
120
      disable: true
121

122
volumes:
123
  superset_home:
124
    external: false
125
  db_home:
126
    external: false
127
  redis:
128
    external: false
129

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.