Skip to content

Instantly share code, notes, and snippets.

@josfaber
Created September 9, 2021 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josfaber/cd8d5f3b6bd2755b91d3e9bd5c677038 to your computer and use it in GitHub Desktop.
Save josfaber/cd8d5f3b6bd2755b91d3e9bd5c677038 to your computer and use it in GitHub Desktop.
Docker LAMPP composer file
version: '3.7'
services:
php-httpd:
image: php:7.3-apache
ports:
- 80:80
volumes:
- "./DocumentRoot:/var/www/html"
mariadb:
image: mariadb:10.5.2
volumes:
- mariadb-volume:/var/lib/mysql
environment:
TZ: "Europe/Amsterdam"
MYSQL_ALLOW_EMPTY_PASSWORD: "no"
MYSQL_ROOT_PASSWORD: "thewall"
MYSQL_USER: 'johnsnow'
MYSQL_PASSWORD: 'winteriscoming'
MYSQL_DATABASE: 'got'
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- 'mariadb:db'
ports:
- 8081:80
volumes:
mariadb-volume:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment