Skip to content

Link to mysql database with docker-compose #2

@thsdrouot

Description

@thsdrouot

Hi Achild,

I'm using a docker-compose.yml to deploy Bugzilla in a Docker container.
Impossible to ping from the running container to the MySQL Container called "database" and also to connect the database.

Here is my docker-compose file

bugzilla:
build: .
links:

  • database:mysql
    ports:
  • "8282:80"
    volumes:
  • ".:/var/www/bugzilla"
    environment:
    VIRTUAL_HOST: mysite

database:
image: mysql:latest
ports:

  • "3307:3306"
    environment:
    • MYSQL_ROOT_PASSWORD=password
    • MYSQL_DATABASE=mysite
    • MYSQL_USER=mysite
    • MYSQL_PASSWORD=password

Any idea ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions