Skip to content

Commit 0b045d6

Browse files
committed
Fix docker compose files and update README
1 parent ffd8129 commit 0b045d6

File tree

3 files changed

+22
-17
lines changed

3 files changed

+22
-17
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ KOTH is a monorepo with packages that allows for automated judging of code submi
1818
A docker-compose file is provided to setup the whole thing. Make sure to create a `.env` file with fields from `sample.env`.
1919

2020
```bash
21-
$ docker-compose up
21+
$ docker-compose up # runs @koth/worker and @koth/website
2222
# now you should be able to go to http://localhost:3000/koth/
2323
# if you have an gatekeeper admin accessToken cookie you can go to http://localhost:3000/koth/admin/queues
24+
25+
# if you just want to run the worker and queue (because normally the website would be hosted using JAMSTACK somewhere)
26+
# use this command
27+
$ docker-compose -f docker-compose.prod.yml up
2428
```

docker-compose.prod.yml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ services:
2323
volumes:
2424
- /var/run/docker.sock:/var/run/docker.sock
2525
- ../test-cases:/secret
26+
- $PWD/worker:/workspace
2627
- ../keys:/keys
2728
ports:
2829
- 4000:3000

docker-compose.yml

+16-16
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ services:
2727
- ../keys:/keys
2828
ports:
2929
- 4000:3000
30-
# website:
31-
# build:
32-
# context: ./website
33-
# dockerfile: Dockerfile
34-
# volumes:
35-
# - ./website:/workspace
36-
# command: npm run dev
37-
# privileged: true
38-
# ports:
39-
# - 3000:4000
40-
# env_file:
41-
# - ./.env
42-
# environment:
43-
# GATEKEEPER_URL: "https://dev.tamudatathon.com/auth"
44-
# WORKER_SPAWNER_URL: "http://worker:3000/koth/admin"
45-
# WORKER_SPAWNER_KEY: "secretKey"
30+
website:
31+
build:
32+
context: ./website
33+
dockerfile: Dockerfile
34+
volumes:
35+
- ./website:/workspace
36+
command: npm run dev
37+
privileged: true
38+
ports:
39+
- 3000:4000
40+
env_file:
41+
- ./.env
42+
environment:
43+
GATEKEEPER_URL: "https://dev.tamudatathon.com/auth"
44+
WORKER_SPAWNER_URL: "http://worker:3000/koth/admin"
45+
WORKER_SPAWNER_KEY: "secretKey"

0 commit comments

Comments
 (0)