bw-hspc-contest-env/web/docker-compose.yml
David Poeschl 22bc7460df
Merge shared code for submission running (extension/sandbox) and team submission info (extension/web) (#16)
* 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>
2024-03-11 13:32:23 -04:00

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