-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (30 loc) · 998 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (30 loc) · 998 Bytes
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
services:
ubicity:
build:
context: .
# Repo uses the OCI-standard `Containerfile` (podman-native);
# name it explicitly so `docker compose build` finds it too.
dockerfile: Containerfile
image: ubicity:latest
container_name: ubicity-app
volumes:
- ./ubicity-data:/app/ubicity-data
environment:
- UBICITY_LOG_LEVEL=info
# Deno entrypoint (see Containerfile). Override per invocation.
command: ["run", "--allow-read", "--allow-write", "src/cli.js", "help"]
# Optional: web server for visualization output
viz-server:
image: nginx:alpine
container_name: ubicity-viz
ports:
- "8080:80"
volumes:
- ./ubicity-data:/usr/share/nginx/html:ro
depends_on:
- ubicity
# Usage:
# docker compose build
# docker compose run --rm ubicity task report
# docker compose run --rm ubicity test --allow-read --allow-write tests/
# docker compose up viz-server # visualizations at http://localhost:8080