Skip to content

Commit 49b3d5b

Browse files
authored
Update README.md
1 parent f6cae41 commit 49b3d5b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ To run on a server, you can use [the docker image](https://hub.docker.com/r/lova
171171
- Optionally, you can also mount a directory containing sqlpage's configuration file,
172172
custom components, and migrations
173173
(see [configuration.md](./configuration.md)) to `/etc/sqlpage` in the container.
174+
- For instance, you can use:
175+
- `docker run -it --name sqlpage -p 8080:8080 --volume "$(pwd)/source:/var/www" --volume "$(pwd)/configuration:/etc/sqlpage:ro" --rm lovasoa/sqlpage`
176+
- And place your website in a folder named `source` and your `sqlpage.json` in a folder named `configuration`.
174177
- If you want to build your own docker image, taking the raw sqlpage image as a base is not recommended, since it is extremely stripped down and probably won't contain the dependencies you need. Instead, you can take debian as a base and simply copy the sqlpage binary from the official image to your own image:
175178
- ```Dockerfile
176179
FROM debian:stable-slim

0 commit comments

Comments
 (0)