This repository has been archived on 2024-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
joomla/docker-compose.yml

55 lines
1.3 KiB
YAML
Raw Normal View History

2023-05-19 20:30:39 -07:00
version: '3.8'
volumes:
${PROJECTNAME}-db:
joomla:
networks:
default:
external:
name: ${NETWORKNAME}
services:
mariadb:
container_name: ${PROJECTNAME}-db
image: mariadb:10.7.1 # https://hub.docker.com/_/mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_USER: joomlauser
MYSQL_PASSWORD: userpass
MYSQL_DATABASE: joomladb
volumes:
- ${PROJECTNAME}-db:/var/lib/mysql
joomla:
container_name: ${PROJECTNAME}-joomla
image: joomla:4.3.1 # https://hub.docker.com/_/joomla
restart: always
environment:
JOOMLA_DB_HOST: ${PROJECTNAME}-db
JOOMLA_DB_USER: ${MYSQL_USER}
JOOMLA_DB_PASSWORD: ${MYSQL_PASSWORD}
JOOMLA_DB_NAME: ${MYSQL_DATABASE}
volumes:
- ./html:/var/www/html
ports:
- "8000:80"
phpmyadmin:
container_name: ${PROJECTNAME}-phpmyadmin
image: phpmyadmin/phpmyadmin:latest # https://hub.docker.com/_/phpmyadmin
environment:
PMA_USER: ${MYSQL_USER}
PMA_PASSWORD: ${MYSQL_PASSWORD}
PMA_HOST: ${PROJECTNAME}-db
UPLOAD_LIMIT: '200M'
ports:
- "8001:80"
mailhog:
image: 'mailhog/mailhog:latest' # https://hub.docker.com/r/mailhog/mailhog
container_name: "${DOCKERNAME}-mailhog"
ports:
- "1025:1025"
- "8025:8025"