mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
23 lines
417 B
YAML
23 lines
417 B
YAML
services:
|
|
mongo:
|
|
image: mongo:8
|
|
restart: unless-stopped
|
|
volumes:
|
|
- mongodb-data:/data/db
|
|
hydro:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
privileged: true
|
|
depends_on:
|
|
- mongo
|
|
volumes:
|
|
- ..:/workspace:cached
|
|
- node_modules:/workspace/node_modules
|
|
- testdata:/data/file
|
|
command: go-judge
|
|
|
|
volumes:
|
|
mongodb-data:
|
|
node_modules:
|
|
testdata: |