Skip to content

Link to mysql database with docker-compose #2

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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