2022-08-19 10:53:45 +00:00
|
|
|
|
2022-08-22 14:39:39 +00:00
|
|
|
# With docker-compose
|
2022-08-19 10:53:45 +00:00
|
|
|
|
2022-08-22 14:39:39 +00:00
|
|
|
## How to build and run the whole thing
|
|
|
|
|
|
|
|
First install docker and docker-compose on your system
|
|
|
|
|
|
|
|
Then:
|
2022-08-19 11:00:26 +00:00
|
|
|
$ cd compose
|
|
|
|
|
|
|
|
$ docker-compose up
|
2022-08-19 10:53:45 +00:00
|
|
|
|
2022-08-22 14:39:39 +00:00
|
|
|
## How to use it
|
2022-08-19 10:58:21 +00:00
|
|
|
|
2022-08-19 11:04:28 +00:00
|
|
|
Go to localhost:6655 to see what the php server serves.
|
2022-08-19 10:58:21 +00:00
|
|
|
In the
|
|
|
|
|
2022-08-19 11:00:26 +00:00
|
|
|
compose/docker-compose.yaml
|
2022-08-19 10:58:21 +00:00
|
|
|
|
|
|
|
file you can specify another port, too.
|
|
|
|
|
|
|
|
Under
|
|
|
|
|
2022-08-19 11:00:26 +00:00
|
|
|
overlay/opt
|
2022-08-19 10:58:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
you find the directory which is on the container itself.
|
2022-08-19 11:04:28 +00:00
|
|
|
|
|
|
|
Build and change the project there, having the running container.
|
2022-08-19 10:58:21 +00:00
|
|
|
|
|
|
|
To list your running container issue
|
|
|
|
|
2022-08-19 11:02:33 +00:00
|
|
|
docker ps -a
|
2022-08-19 10:53:45 +00:00
|
|
|
|
2022-08-22 14:39:39 +00:00
|
|
|
# Without docker-compose
|
|
|
|
|
|
|
|
Get the source code of the directory
|
|
|
|
|
|
|
|
overlay/opt
|
|
|
|
|
|
|
|
Be preferably on a debian based system.
|
|
|
|
|
|
|
|
Install php7.4-cli
|
2022-08-19 10:53:45 +00:00
|
|
|
|
2022-08-22 14:39:39 +00:00
|
|
|
Run it.
|