Last active
July 15, 2024 11:28
-
-
Save jswebschmiede/fb3bbf8c34264913c4f157555fc34042 to your computer and use it in GitHub Desktop.
Joomla Docker Compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
joomla: | |
image: joomla:latest | |
restart: unless-stopped | |
links: | |
- db:mysql | |
depends_on: | |
- db | |
healthcheck: | |
test: ['CMD-SHELL', 'mysqladmin ping -h localhost -u root -psecret'] | |
interval: 10s | |
timeout: 5s | |
retries: 3 | |
ports: | |
- 6379:80 | |
volumes: | |
- ./joomla:/var/www/html | |
# - ./php.ini:/var/www/html/php.ini | |
networks: | |
- joomla | |
environment: | |
- APACHE_RUN_GROUP=#1000 | |
- APACHE_RUN_USER=#1000 | |
- JOOMLA_DB_HOST=db | |
- JOOMLA_DB_USER=root | |
- JOOMLA_DB_PASSWORD=secret | |
- JOOMLA_DB_NAME=joomla | |
db: | |
image: 'mysql' | |
ports: | |
- 3306:3306 | |
restart: unless-stopped | |
volumes: | |
- mysqldata:/var/lib/mysql | |
environment: | |
- MYSQL_ROOT_PASSWORD=secret | |
networks: | |
- joomla | |
mailhog: | |
image: mailhog/mailhog | |
ports: | |
- 1025:1025 # smtp server | |
- 8025:8025 # web ui | |
networks: | |
- joomla | |
phpmyadmin: | |
image: 'phpmyadmin:latest' | |
ports: | |
- 8080:80 | |
networks: | |
- joomla | |
environment: | |
- PMA_ARBITRARY=1 | |
- PMA_HOST=db | |
depends_on: | |
- db | |
volumes: | |
mysqldata: {} | |
networks: | |
joomla: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment