22bc7460df
* Unify submission execution implementations into submissionRunner * Unify contestMonitorTypes definitions between extension & web * Make line separator in entry use LF * Add entry.sh for sandbox * Fix web imports * Sandbox read from .env --------- Co-authored-by: orosmatthew <orosmatthew@pm.me>
28 lines
608 B
YAML
28 lines
608 B
YAML
version: '3'
|
|
services:
|
|
db:
|
|
image: postgres:latest
|
|
volumes:
|
|
- ./db:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_PASSWORD=password
|
|
- POSTGRES_USER=bwcontest
|
|
- POSTGRES_DB=bwcontest
|
|
restart: unless-stopped
|
|
web:
|
|
build:
|
|
context: ../
|
|
dockerfile: ./web/Dockerfile
|
|
ports:
|
|
- 3000:3000
|
|
- 7006:7006
|
|
environment:
|
|
- DATABASE_URL=postgresql://bwcontest:password@db:5432/bwcontest
|
|
- GIT_PORT=7006
|
|
- ORIGIN=http://127.0.0.1:3000
|
|
volumes:
|
|
- ./repo:/app/repo
|
|
depends_on:
|
|
- db
|
|
restart: unless-stopped
|