services: app: build: context: .. dockerfile: docker_dev/Dockerfile ports: - 8081:80 develop: watch: - path: ./ action: rebuild - path: ../. action: sync target: /usr/local/apache2/htdocs/ mysql: image: mysql:8.0-debian # 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: {}