fixed up for project name to be the folder

This commit is contained in:
Nick Yeoman 2023-05-19 20:45:06 -07:00
parent 6a4d2ba9ce
commit 777e610969
3 changed files with 11 additions and 17 deletions

View File

@ -2,6 +2,7 @@
Joomla CMS.
1. Clone me
1. Change env
1. compose up -d
1. Clone me ```git clone git@git.nickyeoman.com:nick/joomla.git projectName```
1. mv env.sample .env
1. vi .env
1. sudo docker-compose up -d

View File

@ -1,7 +1,7 @@
version: '3.8'
volumes:
${PROJECTNAME}-db:
joomla-db:
joomla:
networks:
@ -11,23 +11,21 @@ networks:
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
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
volumes:
- ${PROJECTNAME}-db:/var/lib/mysql
- joomla-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_HOST: mariadb
JOOMLA_DB_USER: ${MYSQL_USER}
JOOMLA_DB_PASSWORD: ${MYSQL_PASSWORD}
JOOMLA_DB_NAME: ${MYSQL_DATABASE}
@ -37,19 +35,17 @@ services:
- "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
PMA_HOST: mariadb
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"

View File

@ -1,6 +1,3 @@
# Global
PROJECTNAME=joomla
# Docker
NETWORKNAME=admin_web