-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 1 KB
/
docker-compose.yml
File metadata and controls
39 lines (37 loc) · 1 KB
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
services:
preel:
build: .
image: preel
ports:
- "3001:3001"
env_file:
- .env
environment:
- GOOGLE_APPLICATION_CREDENTIALS=/gcp/adc.json
volumes:
- ./out:/app/out:z
- ${GOOGLE_APPLICATION_CREDENTIALS:-/dev/null}:/gcp/adc.json:ro,z
restart: unless-stopped
# One-off: render a preview with default props
# Usage: docker compose run --rm preview
preview:
build: .
image: preel
volumes:
- ./out:/app/out:z
entrypoint: ["npx", "remotion", "render", "src/index.tsx", "PRReview", "/app/out/preview.mp4"]
profiles: ["tools"]
# One-off: review a specific PR
# Usage: docker compose run --rm review owner/repo 42
review:
build: .
image: preel
env_file:
- .env
environment:
- GOOGLE_APPLICATION_CREDENTIALS=/gcp/adc.json
volumes:
- ./out:/app/out:z
- ~/.config/gcloud/application_default_credentials.json:/gcp/adc.json:ro,z
entrypoint: ["npx", "tsx", "src/cli.ts"]
profiles: ["tools"]