You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
version: "3.8"services:
# PHP Servicephp:
# image: php:7.4-apachebuild: .environment:
MYSQL_SERVER_MULTIURL: "mariadb"# set this to the name of the MariaDB serviceMYSQL_PORT_MULTIURL: 3306MYSQL_DB_MULTIURL: "multiurl"MYSQL_USER_MULTIURL: "multiurl_db_public"MYSQL_PASSWORD_MULTIURL: {INSERT HERE}RECAPTCHA_SECRET_MULTIURL: {INSERT HERE}ports:
- "{SELECT YOUR PORT}:80"volumes:
- ./:/var/www/html/# MariaDB Servicemariadb:
image: mariadb:10.11environment:
MYSQL_RANDOM_ROOT_PASSWORD: "true"MYSQL_DATABASE: "multiurl"MYSQL_USER: "multiurl_db_public"MYSQL_PASSWORD: {INSERT HERE}volumes:
- mysqldata:/var/lib/mysql # ensures the database is persistent
- ./mysql-startup:/docker-entrypoint-initdb.d # contents of this runs on startup# Volumesvolumes:
mysqldata: # this is managed by docker - to clear use docker exec -it multi-url-mariadb-1 bash