-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (46 loc) · 1.35 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (46 loc) · 1.35 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
40
41
42
43
44
45
46
47
48
version: '3.9'
services:
bot:
build:
context: .
dockerfile: Dockerfile
image: sw-metadata-bot:latest
container_name: sw-metadata-bot
environment:
# Configuration - customize as needed
SW_METADATA_BOT_CONFIG: /app/config.json
# Optional: Add GitHub/GitLab tokens via environment
# GITHUB_TOKEN: ${GITHUB_TOKEN}
# GITLAB_TOKEN: ${GITLAB_TOKEN}
volumes:
# Mount config file
- ./config.json:/app/config.json:ro
# Mount output directory
- ./outputs:/app/outputs
# Mount input files if needed
- ./assets:/app/assets:ro
# Uncomment to override the default command
# command: uv run sw-metadata-bot run-analysis --config /app/config.json
restart: "no"
# Development container with dev dependencies
bot-dev:
build:
context: .
dockerfile: Dockerfile.dev
args:
PYTHON_VERSION: 3.12
image: sw-metadata-bot:dev
container_name: sw-metadata-bot-dev
environment:
PYTHONDONTWRITEBYTECODE: 1
PYTHONUNBUFFERED: 1
volumes:
- .:/workspace
- /workspace/.venv
working_dir: /workspace
# Run bot commands explicitly through uv in this dev container, for example:
# docker compose run --rm bot-dev uv run sw-metadata-bot --help
command: /bin/bash
stdin_open: true
tty: true
restart: "no"