Comments (3)
@matsvitt Hello there! I'm here to help you with any bugs, questions, or contributions you have. Just give me a shout, and I'll do my best to assist you while we wait for a human maintainer.
To address the issues you're encountering with the docker-compose-non-dev.yml
and docker/.env
files, follow these steps:
-
Ensure the
.env
file is properly configured:- Create a
docker/.env
file with your unique random secure passwords andSECRET_KEY
. - Example content for
docker/.env
:POSTGRES_DB=superset POSTGRES_USER=superset POSTGRES_PASSWORD=your_postgres_password SECRET_KEY=your_secret_key DATABASE_HOST=superset_db
- Create a
-
Update the
docker-compose-non-dev.yml
file:- Ensure the
env_file
entries are correctly specified as strings. - Example
docker-compose-non-dev.yml
:version: "4.0" services: redis: image: redis:7 container_name: superset_cache restart: unless-stopped volumes: - redis:/data db: env_file: - ./docker/.env image: postgres:15 container_name: superset_db restart: unless-stopped volumes: - db_home:/var/lib/postgresql/data - ./docker/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d superset: env_file: - ./docker/.env build: context: . target: dev cache_from: - apache/superset-cache:3.10-slim-bookworm container_name: superset_app command: ["/app/docker/docker-bootstrap.sh", "app-gunicorn"] user: "root" restart: unless-stopped ports: - 8088:8088 depends_on: - db - redis volumes: - ./docker:/app/docker - superset_home:/app/superset_home superset-init: container_name: superset_init build: context: . target: dev cache_from: - apache/superset-cache:3.10-slim-bookworm command: ["/app/docker/docker-init.sh"] env_file: - ./docker/.env depends_on: - db - redis user: "root" volumes: - ./docker:/app/docker - superset_home:/app/superset_home healthcheck: disable: true superset-worker: build: context: . target: dev cache_from: - apache/superset-cache:3.10-slim-bookworm container_name: superset_worker command: ["/app/docker/docker-bootstrap.sh", "worker"] env_file: - ./docker/.env restart: unless-stopped depends_on: - db - redis user: "root" volumes: - ./docker:/app/docker - superset_home:/app/superset_home healthcheck: test: [ "CMD-SHELL", "celery -A superset.tasks.celery_app:app inspect ping -d celery@$$HOSTNAME", ] superset-worker-beat: build: context: . target: dev cache_from: - apache/superset-cache:3.10-slim-bookworm container_name: superset_worker_beat command: ["/app/docker/docker-bootstrap.sh", "beat"] env_file: - ./docker/.env restart: unless-stopped depends_on: - db - redis user: "root" volumes: - ./docker:/app/docker - superset_home:/app/superset_home healthcheck: disable: true volumes: superset_home: external: false db_home: external: false redis: external: false
- Ensure the
-
Start the services:
- Run the following command to start the services defined in
docker-compose-non-dev.yml
:docker-compose -f docker-compose-non-dev.yml up -d
- Run the following command to start the services defined in
-
Initialize the database and create an admin user:
- Run the following command to initialize the database and create an admin user:
docker-compose -f docker-compose-non-dev.yml run --rm superset-init
- Run the following command to initialize the database and create an admin user:
By following these steps, you should be able to spin up the production version and create an admin user without encountering errors related to the env_file
and database connection [1].
To continue talking to Dosu, mention @dosu.
from superset.
Yes, it would be correct to create a pull request to address the issues in the docker-compose-non-dev.yml
and docker/.env
files in the master branch [1].
To continue talking to Dosu, mention @dosu.
from superset.
from superset.
Related Issues (20)
- Failed to setup alerts and reports based pypi installation HOT 6
- 4.0.1: Alerting and reports does not take EMAIL RECIPIENTS* HOT 4
- Filter does not follow label HOT 1
- [SIP-138] Proposal for Slack file upload V2 integration for Alerts and Reports HOT 2
- [SIP-139] Proposal for Ant Design 5.x Upgrade HOT 4
- On KILL QUERY error "expected string or bytes-like object" in Clickhouse DB HOT 1
- build fails when using docker compose up HOT 7
- Blank Charts while loading dashboard HOT 2
- Warning when upgrading DB HOT 1
- 500 error and unexpected keyword argument 'extra_filters' HOT 3
- sqlalchemy.exc.ArgumentError HOT 1
- Oracle as Metadata- Not working HOT 2
- Thumbnails work for Dashboards, not for charts HOT 1
- Unable to set role permissions for new schema unless a new connection is created. HOT 1
- Superset Login Redirect After Guest Token Usage in Angular Iframe HOT 1
- Data Misalignment When Applying Filter HOT 5
- PLAYWRIGHT_REPORTS_AND_THUMBNAILS grey output for dashboards HOT 4
- Superset 3.1.3: Long Dashboards render blank thumbnails unless Dashboard length is reduced HOT 4
- Changing to non-temporal variable, then back, causes time grain to no longer function in 4.0.2rc2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from superset.