Skip to content

Commit a7d7e01

Browse files
use compose profiles to make snekbox image optional. (#20)
1 parent 95c7d18 commit a7d7e01

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ The default compose file assumes you want snekbox too, however you can comment o
3131
Make a copy of `.template.env` and name it to `.env`, edit the values as you see fit (the defaults will work too, and be okay so long as you don't expose this database to the internet).
3232
Then a simple `docker compose up` will bring your bot up!
3333

34+
NOTE: If you want to enable the snekbox service for sandboxed open eval, do:
35+
```sh
36+
docker compose --profile snekbox up
37+
```
38+
which will enable all services and snekbox.
39+
3440
(or `docker-compose` if you are not on the latest versions...)
3541

3642
#### Notes

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ services:
3838
ports:
3939
- "127.0.0.1:8060:8060"
4040
privileged: true
41+
profiles:
42+
- "snekbox"
4143
restart: always
4244

4345
version: "3"

0 commit comments

Comments
 (0)