2023-10-14 15:57:28 +02:00
services :
app :
build :
context : ..
dockerfile : docker_dev/Dockerfile
ports :
- 8081 : 80
develop :
watch :
- path : ./
action : rebuild
2023-10-23 22:37:54 +02:00
- path : ../www/composer.*
action : rebuild
2023-10-19 21:53:14 +02:00
- path : ../www/
2023-10-14 15:57:28 +02:00
action : sync
2023-10-16 16:15:24 +02:00
target : /var/www/html
ignore :
- ../.git
2023-10-19 21:53:14 +02:00
- mysql_schema.sql
2023-12-11 16:14:55 +01:00
volumes :
- website_datavolume:/var/www/html/raw
2023-10-14 15:57:28 +02:00
mysql :
2023-10-16 16:15:24 +02:00
build :
dockerfile : MysqlDockerfile
2023-10-14 15:57:28 +02:00
# NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
# (this is just an example, not intended to be a production configuration)
command : --default-authentication-plugin=mysql_native_password
restart : always
environment :
MYSQL_ROOT_PASSWORD : example
2023-10-19 21:53:14 +02:00
ports :
- 3306 : 3306
develop :
watch :
- path : mysql_schema.sql
action : rebuild
2023-12-11 16:14:55 +01:00
volumes :
- sqlvolume:/var/lib/mysql
2023-10-14 15:57:28 +02:00
volumes :
sqlvolume : {}
2023-12-11 16:14:55 +01:00
website_datavolume : {}