32,398 questions
0
votes
1
answer
97
views
MariaDB: docker compose will mount /var/lib/mysql but not other volumes
This is my Docker Compose for MariaDB:
mariadb:
container_name: mariadb
image: mariadb:latest
environment:
- MYSQL_DATABASE=homeassistant
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
...
2
votes
0
answers
99
views
Datahub : Token based authentication is currently disabled. Contact your DataHub administrator to enable this feature [closed]
I dont know if anyone here has already installed Datahub project using docker-compose.
I did so, in a debian machine, but when I tried to log-in i see this error :
here's the docker-compose file :
...
118
votes
14
answers
143k
views
Install node_modules inside Docker container and synchronize them with host
I have the problem with installing node_modules inside the Docker container and synchronize them with the host. My Docker's version is 18.03.1-ce, build 9ee9f40 and Docker Compose's version is 1.21.2,...
1
vote
2
answers
2k
views
Why runing laravel app which using docker/sail I got attribute version is obsolete?
I need on my home laptop to run laravel 8 app which using laravel/sail: ^1.0.1 and running it I got errors:
master@master-at-home:/mnt/_work_sdb8/wwwroot/lar/_MyApps/app$ ./vendor/bin/sail up
Docker ...
459
votes
4
answers
388k
views
Difference between links and depends_on in docker_compose.yml
According to the Docker Compose's compose-file documentation:
depends_on - Express dependency between services.
links - Link to containers in another service and also express dependency between ...
204
votes
6
answers
496k
views
Provide static IP to docker containers via docker-compose
I'm trying to provide static IP address to containers. I understand that I have to create a custom network. I create it and the bridge interface is up on the host machine (Ubuntu 16.x). The containers ...
0
votes
1
answer
298
views
docker-compose error with andrius/asterisk:alpine-latest-20.5.2
i want to use andrius/asterisk:alpine-latest-20.5.2 with a custom dialplan and a custom AGI script for only outbound calls and i get build errors related to the asterisk dockerfile when i run docker-...
10
votes
4
answers
18k
views
How to create an ollama model using docker-compose?
I would like to make a docker-compose which starts ollama (like ollama serve) on port 11434 and creates mymodel from ./Modelfile.
I found a similar question about how to run ollama with docker compose ...
98
votes
11
answers
176k
views
How to connect locally hosted MySQL database with the docker container
Through docker-compose.yml I am able to run the application. Now we want to move the application to production, But we don't want to use the container database. So is there any way so that I can ...
-1
votes
1
answer
106
views
The Bitnami InfluxDB container automatically exits [closed]
I use docker compose to deploy an influxdb container, the compose file is as follows
services:
influxdb:
image: bitnami/influxdb:latest
volumes:
- influxdb_data:/bitnami/influxdb
...
2
votes
2
answers
274
views
How to enable hot reload for a Spring Boot container from within a DevContainer?
I'm editing the source code of a Spring Boot container (created using Docker Compose) from within a DevContainer that provides a Java development environment.
After editing the source code, I manually ...
95
votes
13
answers
84k
views
Wordpress Docker won't increase upload limit
I am trying to increate the upload limit of my Dockerized Wordpress instance to 150M.
[filename] exceeds the maximum upload size for this site.
I have created an uploads.ini file and attached it by ...
177
votes
7
answers
164k
views
What is the alternative to condition form of depends_on in docker-compose Version 3?
docker-compose 2.1 offers the nice feature to specify a condition with depends_on. The current docker-compose documentation states:
Version 3 no longer supports the condition form of depends_on.
...
0
votes
1
answer
88
views
Why is my environment variables missing in .next build files, but is present when I ssh into container
I noticed my environment variables missing in .next build files, but is present when I ssh into container, it's present in the shell and REPL.
When I check the app out this NEXT_PUBLIC_API_URL default ...
1
vote
2
answers
57
views
Dockerized Flask: Cannot connect to endpoint
I am running a Gunicorn app inside a docker container with the following configurations
Dockerfile:
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
...
2
votes
0
answers
90
views
Starting order of docker compose?
I have a quite complex Docker Compose file here which includes databases, multiple APIs and web endpoints with quite some dependencies. When I start the whole thing via docker compose up -d it starts ...
0
votes
1
answer
559
views
Kafka authentication with scram 512 and KRAFT mode doesn't work
Kafka authentication with scram 512 and KRAFT mode doesn't work. My docker compose looks like this.
services:
kafka-1:
image: confluentinc/cp-kafka:7.7.1
ports:
- '9092:9092'
...
0
votes
2
answers
425
views
How to create SQL Server user and password within docker container
I am using docker-compose to create containers for my Go Server, and SQL Server database.
I need to create a username and password for the go server to connect to the SQL Server database. I've ...
62
votes
5
answers
113k
views
docker-compose change name of main container
I have a simple frontend and backend app. And I have a docker-compose file but it's inside frontend folder. So when I run it both frontend and backend containers are under frontend container (it takes ...
52
votes
2
answers
71k
views
Docker compose equivalent of `docker run --gpu=all` option [closed]
To automate the configuration (docker run arguments) used to launch a docker container, I am writing a docker-compose.yml file.
My container should have access to the GPU, and so I currently use ...
291
votes
2
answers
149k
views
docker-compose up vs docker-compose up --build vs docker-compose build --no-cache
I couldn't figure out what the difference between those.
docker-compose up
docker-compose up --build
docker-compose build --no-cache
Is there any command for upwithout cache?
-1
votes
1
answer
65
views
How do I use two databases with docker compose?
I have set up an php laravel sql platform with docker compose with the following docker compose.yml. I only have one database(with production data) but I also want to test out somethings with dummy ...
110
votes
11
answers
246k
views
exited with code 0 docker
I'm trying to launch container using docker-compose services.But unfortunetly, container exited whith code 0.
Containers is build thanks to a repository which is from a .tar.gz archive. This archive ...
69
votes
7
answers
29k
views
Mysql not starting in a docker container on MacOS after docker update
I just upgraded to Docker Desktop 2.4 on MacOS, from version 2.3. Suddenly none of my mysql containers will start. The logs show this as the reason:
Different lower_case_table_names settings for ...
0
votes
1
answer
309
views
Getting a "connection refused" error when attempting to upload metrics to an OpenTelemetry collector
I'm trying to build a simplified example of a Go application which exports metrics using OpenTelemetry and visualizes them in Grafana. I have the following directory structure:
.
├── docker-compose....