diff options
author | Yuchen Pei <hi@ypei.me> | 2021-08-26 11:24:58 +1000 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2021-08-26 11:24:58 +1000 |
commit | 7b2c76f23be47a8753cfe6d197843a82c6ebf26d (patch) | |
tree | 3d85a179d3ac90dc4f25665c2bbff0c1372683a0 /docker | |
parent | a57a3fa7241f33a94d41a1fd22a0d07c8fb6286d (diff) |
Moving docker files to its own directory.
Also applied the docker patch and removed some commented code.
Diffstat (limited to 'docker')
-rw-r--r-- | docker/docker-compose.yml | 14 | ||||
-rwxr-xr-x | docker/readme-php5.sh | 18 |
2 files changed, 32 insertions, 0 deletions
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml new file mode 100644 index 0000000..c3f2349 --- /dev/null +++ b/docker/docker-compose.yml @@ -0,0 +1,14 @@ +# Image for LAMP based on Dockerfile in https://github.com/jakejarvis/docker-lamp-php5 +# WARNING: Not suitable for production environments, only for testing legacy php5 application. +# (Docker image supplementary files licenced under Apache 2.0) + +version: "3" +services: + lamp-php5: + image: docker.io/jakejarvis/lamp-php5:latest + ports: + - 80:80 + - 3306:3306 + volumes: + - "../h-source:/app" + - "./mysql:/var/lib/mysql" diff --git a/docker/readme-php5.sh b/docker/readme-php5.sh new file mode 100755 index 0000000..fb62a4d --- /dev/null +++ b/docker/readme-php5.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# +# INSTRUCTIONS for testing with docker-lamp-php5: +# +# After the docker container spins up, +# the mysql password will be displayed. +# - MySQL on port 3306 +# - Apache on port 80 +# +# Don't forget to create the database: +# mysql -uadmin -pXXX -h127.0.0.1 +# > create database hnode; +# > ^D +# and populate the schema/initial data with: +# mysql -uadmin -pXXX -h127.0.0.1 hnode < ../h-source/tables.sql + +docker-compose up --build lamp-php5 + |