File tree 3 files changed +22
-17
lines changed
3 files changed +22
-17
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,11 @@ KOTH is a monorepo with packages that allows for automated judging of code submi
18
18
A docker-compose file is provided to setup the whole thing. Make sure to create a ` .env ` file with fields from ` sample.env ` .
19
19
20
20
``` bash
21
- $ docker-compose up
21
+ $ docker-compose up # runs @koth/worker and @koth/website
22
22
# now you should be able to go to http://localhost:3000/koth/
23
23
# 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
24
28
```
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ services:
23
23
volumes :
24
24
- /var/run/docker.sock:/var/run/docker.sock
25
25
- ../test-cases:/secret
26
+ - $PWD/worker:/workspace
26
27
- ../keys:/keys
27
28
ports :
28
29
- 4000:3000
Original file line number Diff line number Diff line change @@ -27,19 +27,19 @@ services:
27
27
- ../keys:/keys
28
28
ports :
29
29
- 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"
You can’t perform that action at this time.
0 commit comments