29 lines
954 B
YAML
29 lines
954 B
YAML
services:
|
|
app:
|
|
build:
|
|
context: ..
|
|
dockerfile: docker_dev/Dockerfile
|
|
ports:
|
|
- 8081:80
|
|
develop:
|
|
watch:
|
|
- path: ./
|
|
action: rebuild
|
|
- path: ../.
|
|
action: sync
|
|
target: /var/www/html
|
|
ignore:
|
|
- ../.git
|
|
mysql:
|
|
build:
|
|
dockerfile: MysqlDockerfile
|
|
# 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
|
|
volumes:
|
|
- sqlvolume:/var/lib/mysql
|
|
volumes:
|
|
sqlvolume: {}
|