first commit

This commit is contained in:
Nick Yeoman 2023-05-19 20:30:39 -07:00
commit 6a4d2ba9ce
4 changed files with 73 additions and 0 deletions

7
README.md Normal file
View File

@ -0,0 +1,7 @@
# Joomla
Joomla CMS.
1. Clone me
1. Change env
1. compose up -d

0
bin/installJoomla.bash Normal file
View File

55
docker-compose.yml Normal file
View File

@ -0,0 +1,55 @@
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"

11
env.sample Normal file
View File

@ -0,0 +1,11 @@
# Global
PROJECTNAME=joomla
# Docker
NETWORKNAME=admin_web
# MySQL
MYSQL_ROOT_PASSWORD=REPLACEME
MYSQL_USER=REPLACEME
MYSQL_PASSWORD=REPLACEME
MYSQL_DATABASE=REPLACEME