saleor-dashboard/docs/docker.md
Adrian Pilarczyk f8f945d1af
Refresh README.md (#2768)
* Update README.md

* Update README.md

* Update README.md

* docs: 📝 add articles to docs folder

* docs: 📝 add configuration article

* docs: 📝 add emojis 😋

* docs: 📝 restructure readme

* docs: 📝 add deployment article

* Empty-Commit
2022-12-06 15:23:04 +01:00

21 lines
562 B
Markdown

# Usage with Docker
Build Docker image:
```shell
docker build --tag saleor-dashboard .
```
Run nginx from Docker and bind it to port on your machine (in this example, it is "8080"):
```shell
docker run --publish 8080:80 --env "API_URL=<YOUR_API_URL>" saleor-dashboard
```
Enter `http://localhost:8080/` to use the dashboard.
If you want to change `API_URL` in runtime, you can use (assuming you have a running container named `saleor-dashboard`):
```shell
docker exec -it -e API_URL=NEW_URL saleor-dashboard /docker-entrypoint.d/50-replace-api-url.sh
```