version: '3.8' services: php: build: dockerfile: 'dev/php/Dockerfile' volumes: - './app:/var/www/slovocast' depends_on: - mariadb links: - mariadb cli: build: context: . dockerfile: 'dev/php/Dockerfile' volumes: - './app:/var/www/slovocast' entrypoint: [ "bash", "-c" ] profiles: - noboot nginx: image: nginx:latest volumes: - './app:/var/www/slovocast' - './dev/nginx:/etc/nginx/conf.d' ports: - "8080:80" depends_on: - php mariadb: image: mariadb:10.9 environment: MARIADB_ROOT_PASSWORD: password MARIADB_DATABASE: slovocast MARIADB_USER: slovocast MARIADB_PASSWORD: password volumes: - "slovocast_data:/var/lib/mysql" ports: - "3306:3306" volumes: slovocast_data: