Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Run legacy PHP 5.3 and MySQL 5.1 on Docker
# Run legacy PHP 5.3 and MySQL 5.1 on Docker
version: '3.7'
services:
php:
container_name: 'php-5.3.29-apache'
depends_on:
- mysql
image: php:5.3.29-apache
volumes:
- ./www:/var/www
ports:
- "80:80"
mysql:
container_name: 'mysql-5.1.73'
image: vsamov/mysql-5.1.73
environment:
MYSQL_DATABASE: db_name
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
ports:
- "3306:3306"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment