1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/superset/docker-compose.yml
2022-01-25 18:41:38 +08:00

50 lines
1018 B
YAML

#
# https://github.com/amancevice/docker-superset/blob/main/examples/celery/docker-compose.yml
#
version: '3.8'
services:
redis:
image: redis:6-alpine
command: --save 900 1
volumes:
- ./data/redis:/data
restart: unless-stopped
postgres:
image: postgres:14-alpine
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
POSTGRES_DB: superset
POSTGRES_PASSWORD: superset
POSTGRES_USER: superset
restart: unless-stopped
superset:
image: amancevice/superset:1.4.0
ports:
- "8088:8088"
volumes:
- ./data/superset:/etc/superset
environment:
MAPBOX_API_KEY: ${MAPBOX_API_KEY}
depends_on:
- postgres
- redis
restart: unless-stopped
worker:
image: amancevice/superset:1.4.0
command: celery worker
volumes:
- ./data/superset:/etc/superset
environment:
MAPBOX_API_KEY: ${MAPBOX_API_KEY}
depends_on:
- postgres
- redis
restart: unless-stopped