-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (45 loc) · 1.29 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '3'
services:
redis:
image: redis
ports:
- 6379:6379
worker:
depends_on:
- redis
build:
context: ./worker
dockerfile: Dockerfile
environment:
PORT: 3000
SECRET_KEY: "secretKey"
REDIS_URL: "redis://redis:6379"
GATEKEEPER_URL: "https://dev.tamudatathon.com/auth"
STOCK_PROBLEM_TEST_FILE: "/secret/test.csv"
HOST_KOTH_WORKER_ROOT: $PWD/worker
GOOGLE_APPLICATION_CREDENTIALS: "/keys/firebase-creds.json"
env_file:
- ./.env
volumes:
- $PWD/worker:/workspace
- /var/run/docker.sock:/var/run/docker.sock
- ../test-cases:/secret
- ../keys:/keys
ports:
- 4000:3000
website:
build:
context: ./website
dockerfile: Dockerfile
volumes:
- ./website:/workspace
command: npm run dev
privileged: true
ports:
- 3000:4000
env_file:
- ./.env
environment:
GATEKEEPER_URL: "https://dev.tamudatathon.com/auth"
WORKER_SPAWNER_URL: "http://worker:3000/koth/admin"
WORKER_SPAWNER_KEY: "secretKey"