Skip to content

Commit

Permalink
Use docker volume instead of env
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjmetzger committed Dec 10, 2023
1 parent aa5caa4 commit e43fbd5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@
FROM python:3.12

# Set the working directory in the container
WORKDIR /app
RUN mkdir "/beetseeker"
WORKDIR ["/beetseeker"]

# Clone the GitHub repository
RUN git clone https://github.com/andrewjmetzger/slskd-betanin-connector.git .

# Install project dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Allow the config to be mounted
VOLUME ["/beetseeker"]

# Expose the port the app runs on
EXPOSE 8347

# Command to run the application
CMD ["python", "main.py"]
CMD ["python", "main.py"]
9 changes: 2 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@ services:
slskd-betanin-connector:
image: andrewjmetzger/slskd-betanin-connector:latest
container_name: slskd-betanin-connector
environment:
- SLSKD_BETANIN_CONNECTOR_PORT=8080
- DOWNLOADS_DIRECTORY=/path/to/slskd/completed/downloads
- SLSKD_URL=http://localhost:5030
- SLSKD_API_KEY=your_slskd_api_key
- BETANIN_URL=http://localhost:9393
- BETANIN_API_KEY=your_betanin_api_key
volumes:
- /path/to/config.py:/app/config.py
ports:
- "8080:8080"
restart: unless-stopped

0 comments on commit e43fbd5

Please sign in to comment.