fixed up for project name to be the folder
This commit is contained in:
parent
6a4d2ba9ce
commit
777e610969
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
Joomla CMS.
|
Joomla CMS.
|
||||||
|
|
||||||
1. Clone me
|
1. Clone me ```git clone git@git.nickyeoman.com:nick/joomla.git projectName```
|
||||||
1. Change env
|
1. mv env.sample .env
|
||||||
1. compose up -d
|
1. vi .env
|
||||||
|
1. sudo docker-compose up -d
|
@ -1,7 +1,7 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
${PROJECTNAME}-db:
|
joomla-db:
|
||||||
joomla:
|
joomla:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
@ -11,23 +11,21 @@ networks:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
mariadb:
|
mariadb:
|
||||||
container_name: ${PROJECTNAME}-db
|
|
||||||
image: mariadb:10.7.1 # https://hub.docker.com/_/mariadb
|
image: mariadb:10.7.1 # https://hub.docker.com/_/mariadb
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||||
MYSQL_USER: joomlauser
|
MYSQL_USER: ${MYSQL_USER}
|
||||||
MYSQL_PASSWORD: userpass
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
||||||
MYSQL_DATABASE: joomladb
|
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
||||||
volumes:
|
volumes:
|
||||||
- ${PROJECTNAME}-db:/var/lib/mysql
|
- joomla-db:/var/lib/mysql
|
||||||
|
|
||||||
joomla:
|
joomla:
|
||||||
container_name: ${PROJECTNAME}-joomla
|
|
||||||
image: joomla:4.3.1 # https://hub.docker.com/_/joomla
|
image: joomla:4.3.1 # https://hub.docker.com/_/joomla
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
JOOMLA_DB_HOST: ${PROJECTNAME}-db
|
JOOMLA_DB_HOST: mariadb
|
||||||
JOOMLA_DB_USER: ${MYSQL_USER}
|
JOOMLA_DB_USER: ${MYSQL_USER}
|
||||||
JOOMLA_DB_PASSWORD: ${MYSQL_PASSWORD}
|
JOOMLA_DB_PASSWORD: ${MYSQL_PASSWORD}
|
||||||
JOOMLA_DB_NAME: ${MYSQL_DATABASE}
|
JOOMLA_DB_NAME: ${MYSQL_DATABASE}
|
||||||
@ -37,19 +35,17 @@ services:
|
|||||||
- "8000:80"
|
- "8000:80"
|
||||||
|
|
||||||
phpmyadmin:
|
phpmyadmin:
|
||||||
container_name: ${PROJECTNAME}-phpmyadmin
|
|
||||||
image: phpmyadmin/phpmyadmin:latest # https://hub.docker.com/_/phpmyadmin
|
image: phpmyadmin/phpmyadmin:latest # https://hub.docker.com/_/phpmyadmin
|
||||||
environment:
|
environment:
|
||||||
PMA_USER: ${MYSQL_USER}
|
PMA_USER: ${MYSQL_USER}
|
||||||
PMA_PASSWORD: ${MYSQL_PASSWORD}
|
PMA_PASSWORD: ${MYSQL_PASSWORD}
|
||||||
PMA_HOST: ${PROJECTNAME}-db
|
PMA_HOST: mariadb
|
||||||
UPLOAD_LIMIT: '200M'
|
UPLOAD_LIMIT: '200M'
|
||||||
ports:
|
ports:
|
||||||
- "8001:80"
|
- "8001:80"
|
||||||
|
|
||||||
mailhog:
|
mailhog:
|
||||||
image: 'mailhog/mailhog:latest' # https://hub.docker.com/r/mailhog/mailhog
|
image: 'mailhog/mailhog:latest' # https://hub.docker.com/r/mailhog/mailhog
|
||||||
container_name: "${DOCKERNAME}-mailhog"
|
|
||||||
ports:
|
ports:
|
||||||
- "1025:1025"
|
- "1025:1025"
|
||||||
- "8025:8025"
|
- "8025:8025"
|
@ -1,6 +1,3 @@
|
|||||||
# Global
|
|
||||||
PROJECTNAME=joomla
|
|
||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
NETWORKNAME=admin_web
|
NETWORKNAME=admin_web
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user