Created
August 11, 2022 07:30
-
-
Save amrikarisma/c5deb8e0ab148633b40efe3340dabdf0 to your computer and use it in GitHub Desktop.
Run legacy PHP 5.3 and MySQL 5.1 on Docker
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
# 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