trigger build
-
Install and setup latest version of docker for your distribution by following the instructions in the official documentation
-
Create a folder in the project root directory with name
web-data
(which is the volume name defined inside compose.yml) -
Now to run the compose file execute the following command (you have to be inside the project directory):
docker compose up -d
- Go inside the mysql container by running the following command:
docker exec -it db-server bash
- now import the database.sql file by running the following command
mysql -u tetris --password="tetrispass" tetris < /tmp/database.sql
- Now exit from the
db-server
and restart the container
docker restart db-server
- If all goes well your app should be running at http://localhost
The web-server
container runs on port 80 by default