Skip to content

Commit b30e36b

Browse files
committed
Adds documentation for Docker and Docker Compose, including YAML configuration for MySQL and phpMyAdmin, to improve clarity and usability.
1 parent 5387000 commit b30e36b

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

docs/guide/docker.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
sidebar_position: 9
3+
---
4+
5+
# Docker & Docker Compose
6+
7+
:::warning Important
8+
The credentials provided in the example below are for demonstration and testing purposes only. **Do not use these credentials in production environments.**
9+
:::
10+
The following Docker Compose configuration is tailored for development purposes and is subject to future enhancements. We plan to include a dedicated Dockerfile with the essential libraries required to utilize the framework effectively.
11+
12+
This setup utilizes Docker Compose to deploy a MySQL server and manage it via phpMyAdmin.
13+
14+
If you are new to these technologies, consider exploring the following resources:
15+
16+
- [Docker Overview](https://www.docker.com/resources/what-container)
17+
- [MySQL Documentation](https://dev.mysql.com/doc/)
18+
- [phpMyAdmin Documentation](https://www.phpmyadmin.net/docs/)
19+
20+
### Docker Compose Configuration
21+
22+
:::success Note
23+
Before deploying this configuration in any environment beyond local development, ensure you replace the default credentials (`root`, `user`, `password`) with secure and unique values.
24+
:::
25+
26+
Below is the YAML configuration file for setting up the services:
27+
28+
```yaml
29+
services:
30+
mysql:
31+
image: mysql:latest
32+
container_name: fire_mysql
33+
environment:
34+
MYSQL_ROOT_PASSWORD: root
35+
MYSQL_DATABASE: testdb
36+
MYSQL_USER: user
37+
MYSQL_PASSWORD: password
38+
ports:
39+
- "3306:3306"
40+
volumes:
41+
- mysql_data:/var/lib/mysql
42+
43+
phpmyadmin:
44+
image: phpmyadmin/phpmyadmin:latest
45+
container_name: fire_phpmyadmin
46+
environment:
47+
PMA_HOST: mysql
48+
PMA_USER: user
49+
PMA_PASSWORD: password
50+
ports:
51+
- "8080:80"
52+
53+
volumes:
54+
mysql_data:
55+
```

0 commit comments

Comments
 (0)