All Questions
Tagged with docker-compose python
1,668 questions
0
votes
2
answers
40
views
How to set up docker compose with django and pdm
I have a django project with pdm and docker compose and I set up the codebase volume to enable django hot reload and debugging in the container. Building with the compose config works fine but when I ...
1
vote
1
answer
41
views
cronjob hour setting is being ignored in docker alpine container
I created a script called 'main.py' that does a little web scrape and sends an e-mail with SMTP.
I set up a cron job to run the script three times a day - at 12:00, 18:00 and 21:00 (UTC-3).
I didn't ...
0
votes
0
answers
44
views
Error 'Failed to import plugin opt/airflow/plugins/operatos/. . . ' when running docker-compose up for images
In my project, I build a docker image on my local machine, then pull the image to the production machine.
On my local machine, I can still run the image using the docker-compose up command to create a ...
0
votes
0
answers
60
views
Files encoding changes after mounting to docker-container
The essence of the problem: when connecting via ssh to docker container with a Python environment, all files mounted in it are processed in ASCII encoding for some reason. The files themselves have ...
-1
votes
1
answer
58
views
How to Fix 'SQLite OperationalError: Attempt to Write a Read-Only Database' in a Dockerized Flask App
I want to use sqlite db in docker container but when I try to add or change data I get this error
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/flask/app....
-2
votes
1
answer
55
views
Where docker gets the worker from if it is not specified in the compose file (it was before, but deleted and docker still pulls it)
I want to run the application from docker, there was a problem that worker_1 connects to localhost, but a different address was specified in the env
.env
DATABASE_URL=postgres://db_user:db_password@db/...
0
votes
1
answer
170
views
DAG's from DAG Folder is not visible in Airflow Home DAG (localhost:8080)
I have 3 Dag files (example1.py, example2.py and example3.py) in DAG folder in airflow/airflow-docker/dags folder (docker container in vscode) and they're not showing up in the Airflow Web Home Page, ...
0
votes
0
answers
56
views
Jupyter interactive window in VSCode attached to dev container is priting a wrong path for __file__
I have an official Python docker container (python:3.11-slim-bookworm) running with a vanilla bind mount on my host, defined as follow in a Compose file:
services:
app:
...
volumes:
- ....
0
votes
1
answer
554
views
How to start ollama with docker compose with specific LLM model
I have a docker compose where a dummy python app is using ollama LMs on the background for some tasks. I want to be able to tell ollama somehow which model to download and use on the app deployment. ...
0
votes
0
answers
20
views
How to indicate in code (python) that the file that should be processed by Apache Spark is mounted inside the container
I'm currently learning Apache Spark technology. In order not to clog the host machine, I launched a Spark cluster in docker. And I have a problem, I can't get Spark to load files that I have mounted ...
1
vote
0
answers
46
views
Docker. How to fill volume at startup
I use docker-compose to run a Django project.
My goal is for docker to start filled with existing data (statics, database, and all the contents of the media directory).
Currently, statics are ...
1
vote
0
answers
70
views
Odoo not working - no CSS on login page and blank screen post-login
I cloned a project from GitLab that uses Docker to set up multiple services, including Odoo 16, PostgreSQL, a FastAPI backend, and a Next.js frontend.
The project works perfectly on my colleague's ...
0
votes
1
answer
27
views
Show waiting input string when attaching to a container
I'm trying to run a client-server application in Python using docker-compose:
I wrote a client.py file that awaits input: command=input("enter command"). The client.py sends requests to the ...
0
votes
1
answer
93
views
Python: Connection Refused with Elasticsearch on docker-compose
I am trying to connect to a Elasticseach instance in Python using elasticsearch==8.17.0 but I get stuck on Errno 111 Connection Refused.
Running bin/elasticsearch-users useradd base-user -p base-...
1
vote
0
answers
32
views
Docker Compose Enviroment varibles cannot be read by application
I have a docker compose image for Apache/Spark and am trying to send Enviroment Varibles for AWS connection they are being saved in a common config block as per below.
x-spark-common: &spark-...