# Docker

The package contains Dockerfile to quickly run application by using Docker. Below you can find commands required to run the application. You can [download Docker here](https://www.docker.com/get-started) and install it on your operating system.

Minimal .env configuration file for Docker. For full example check the  documentation

```
APP_ENV=dev
APP_DEBUG=1
APP_SECRET=YOUR_SECRET
DATABASE_URL=mysql://db:db@db:3306/db?charset=utf8mb4&serverVersion=mariadb-10.4.3
```

After configuring the .env file you can start with the Docker. Commands below must be run in the command line.

```
$ docker-compose build
$ docker-compose u 

# Install schema
$ docker-compose exec web php bin/console doctrine:schema:update --force

# Build CSS files
$ docker-compose exec web ./node_modules/.bin/encore production
```

After starting the application you can access it on the following URL <http://0.0.0.0:7000> and the database (MariaDB) is running on 0.0.0.0:3306.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://codevision.gitbook.io/craft/docker.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
