Skip to content

cron-eu/docker-phpapp-db

Repository files navigation

cron PHP application docker images - Database

Abstract

Part of the docker-phpapp image suite.

See https://github.com/cron-eu/docker-phpapp-php/ for a complete explanation and example usage.

This is the MySQL database container, with images for amd64 and arm64 (i.e. also run on Apple M1).

Tags available

  • croneu/phpapp-db:mariadb-10.7
  • croneu/phpapp-db:mysql-8.0

This is just a pre-configured alternative to the upstream official images (MariaDB or MySQL). This allows us to use it straight on for TYPO3 projects without having to include any further configuration or do any performance tuning.

Settings

See upstream:

Example docker-compose.yaml for MariaDB:

  mysql:
    image: croneu/phpapp-db:mariadb-10.7
    ports:
      - 13306:3306
    volumes:
      - mysql:/var/lib/mysql
    environment:
      MARIADB_ROOT_PASSWORD: ${DB_PASS}
      MARIADB_DATABASE: ${DB_NAME}
      MARIADB_USER: ${DB_USER}
      MARIADB_PASSWORD: ${DB_PASS}

Example docker-compose.yaml for MySQL 8.0:

  mysql:
    image: croneu/phpapp-db:mysql-8.0
    ports:
      - 13306:3306
    volumes:
      - mysql:/var/lib/mysql
    environment:
      MYSQL_ROOT_PASSWORD: ${DB_PASS}
      MYSQL_DATABASE: ${DB_NAME}
      MYSQL_USER: ${DB_USER}
      MYSQL_PASSWORD: ${DB_PASS}

Docker Image Development

Build is triggered automatically via Github Actions.

To create them locally for testing purposes (and load created images to your docker):

make build BUILDX_OPTIONS=--load PLATFORMS=linux/amd64

MIT Licence

See the LICENSE file.

Author

Ernesto Baschny, cron IT GmbH

About

cron PHP application docker images - Database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published