docker-compose.yml 586 Bytes
version: '3.1'

services:
  joomla:
    image: joomla:3.9.14
    depends_on:
      - joomladb
    restart: always
    links:
      - joomladb:mysql
    ports:
      - 8888:80
    volumes:
      - ./app/:/var/www/html:cached
    environment:
      JOOMLA_DB_HOST: joomladb
      JOOMLA_DB_PASSWORD: example

  joomladb:
    image: mariadb:10.4.11
    ports:
       - 3306:3306
    volumes:
      - ./data:/var/lib/mysql
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: example
    command:
      - "--character-set-server=utf8"
      - "--collation-server=utf8_unicode_ci"