All Questions
Tagged with docker-compose mysql
1,398 questions
0
votes
0
answers
36
views
Spin up MySQL container via docker-compose.yaml, database is created, but tables are not
I want to spin up a MySQL container via my docker-compose.yaml, which looks like this:
services:
mysql:
image: mysql:oraclelinux9
container_name: mysql_quartz
ports:
- "3306:...
-1
votes
0
answers
30
views
Docker Compose - The ImageField field in Django cannot upload images when I migrate the database from sqlite3 to MySQL in Docker Compose
I have the Article model in Django blog app
File /backend/blog/models.py
class Article(models.Model):
class Status(models.TextChoices):
DRAFT = 'DF', 'Draft'
PUBLISHED = 'PB', '...
-1
votes
2
answers
54
views
How do I run debezium with Confluent platform?
I have an EC2 machine with mysql DB (not containerized). Now I want to stream CDC events to Confluent-managed Kafka. I am using this docker compose file to start the connect platform on the same host.
...
-1
votes
1
answer
40
views
Consistent Access Denied error when trying to connect to MySQL DB with PDO [duplicate]
I'm newbie to PHP and I'm trying to get started with it.
I have been following this guide to create a PHP boilerplate for future projects using Docker (I didn't want to use XAMPP cause I like to make ...
0
votes
0
answers
36
views
Cant run EntityFrameWork on Docker-compose using Asp.net api
I'm trying to run a .NET API with MySQL as the database, using Entity Framework to set up the database (so from API -> MySQL migrations).
The API seems to run well, and I think MySQL is also ...
0
votes
0
answers
31
views
Database Conflict in Multiple Docker Compose Setups
I have two LAMP stacks for each of my laravel app branches. Each branch is in a different folder. The setups run in a container with the following docker compose files:
1)
version: "3.1"
...
0
votes
2
answers
73
views
Problem connecting springboot to mysql with docker-compose
I am developing a small application using springboot with maven and a mysql db.
I created a Dockerfile that's working but when I try to do docker-compose up the connection from app to db is refused.
...
-1
votes
1
answer
102
views
Docker-Compose MySQL and WordPress Environment Variable Issue
I'm setting up a local development environment for a WordPress project using Docker Compose, including WordPress, MySQL, and Adminer containers. Here’s my docker-compose.yml file:
version: '3.8'
...
0
votes
1
answer
211
views
Running on docker-compose: mysqli::real_connect(): (HY000/1045): Access denied for user 'root'@'172.26.0.12' (using password: YES)
The configuration below works just fine on my local machine:
My docker-compose.yml file:
networks:
mynet:
name: mynet
driver: bridge
services:
mydb:
container_name: ...
0
votes
0
answers
22
views
While trying to run docker app from docker compose file I am getting the error : 00342: Could not obtain connection to query metadata
below is my dockerfile
---
version: "3"
services:
myapp:
image: 872515278889.dkr.ecr.us-east-1.amazonaws.com/gradebookapp:0.0
ports:
- "9090:8080"
mysqlserver:
...
0
votes
1
answer
48
views
cannot connect laravel with mysql inside a docker container [duplicate]
I have laravel 11 application and it works fine. I want the application to run inside docker and I have the following docker file set up for the laravel app:
FROM php:8.3-fpm
RUN apt-get update &&...
2
votes
0
answers
321
views
mysql in docker. Can't create thread to handle bootstrap
I have the following simple project
.
├── Dockerfile
├── docker-compose.yml
└── init.sql
where the Dockerfile is
FROM mysql:8.0-debian
RUN apt-get update \
&& apt-get install -y locales \
...
1
vote
1
answer
107
views
MySQL docker image is not creating database when is executed with docker-compose
I'm new with docker. I have some issues when I run an image from docker-compose.
It's a very simple thing but it's given me headaches.
When I run the image with docker run, any problem. It works.
But ...
0
votes
0
answers
12
views
Connection refused when using Sequelize with MySQL running on Docker [duplicate]
I am building a dockerized API with MYSQL. I have already set up a network between the two services but Sequelize is returning a connection refused error.
Here is my Dockerfile for the API
FROM node:...
0
votes
2
answers
196
views
Deploying Spring Boot application with MySQL using Docker Compose throws a Liquibase error
Tech stack: Java 17, Spring Boot 3.3.2, MySQL 8.0.27, JPA, Liquibase, Docker
I'm trying to deploy Spring Boot application with MySQL using Liquibase as schema migration tool. Here images, containers ...