Build a tic tac toe game with php, get request and session storage.
Try to work in the exercise without looking at the solution. If you get stuck, then check the files in the main folder.
A docker build script is provided, but you can code without docker if you want.
We have a docker-compose.yml file that will create the following containers:
- A container for Nginx;
- A container for PHP;
Make sure Docker Desktop for Mac or PC is installed and running, or head over here if you are a Linux user. You will also need a terminal running Git.
This setup also uses localhost's port 3000 for Nginx, so make sure it is available.
Clone the repository and change the current directory for the project's root:
Run the following command:
$ docker-compose up -d
To stop the containers:
$ docker-compose stop
To destroy the containers:
$ docker-compose down
To destroy the containers and the associated volumes:
$ docker-compose down -v
To remove everything, including images and orphan containers:
$ docker-compose down -v --rmi all --remove-orphans