You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,39 @@ docker compose up postgres -d
102
102
mkdocs serve -f docs/mkdocs/mkdocs.yml -a localhost:8001
103
103
```
104
104
105
+
# Deploy Whitebox
106
+
## Using docker
107
+
108
+
Whitebox uses postgres as its database. They need to run in the same docker network. An example docker-compose file is located in the `examples` folder. Make sure you replace the SECRET_KEY with one of your own. Look below for more info.
109
+
110
+
```bash
111
+
docker-compose -f examples/docker-compose/docker-compose.yml up
112
+
```
113
+
114
+
If you just need to run Whitebox, make sure you set the `DATABASE_URL` in the environment.
115
+
116
+
```bash
117
+
docker run -dp 8000:8000 sqdhub/whitebox:main -e DATABASE_URL=postgresql://user:password@host:port/db_name
118
+
```
119
+
To save the api key encrypted in the database, provide a SECRET_KEY variable in the environment that is consisted of a 16 bytes string.
0 commit comments