Skip to content

Instantly share code, notes, and snippets.

@amrikarisma
Created August 11, 2022 07:30
Show Gist options
  • Save amrikarisma/c5deb8e0ab148633b40efe3340dabdf0 to your computer and use it in GitHub Desktop.
Save amrikarisma/c5deb8e0ab148633b40efe3340dabdf0 to your computer and use it in GitHub Desktop.
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