forked from JohnKuruvila/qbittorrent-peers-location-grafana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
25 lines (23 loc) · 951 Bytes
/
docker-compose.yml
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
version: '3.8'
services:
qbit-peers-mariadb:
image: mariadb:latest
container_name: qbit-peers-mariadb
volumes: # Change /opt/qbit-peers to your desired location
- /opt/qbit-peers/data:/var/lib/mysql
- /opt/qbit-peers/init-scripts:/docker-entrypoint-initdb.d
- /opt/qbit-peers/data/IP2LOCATION-LITE-DB5.CSV:/tmp/IP2LOCATION-LITE-DB5.CSV
environment:
MYSQL_ROOT_PASSWORD: <password>
MYSQL_DATABASE: ip2location
# Add any additional compose requirements here
qbit-peers:
image: python:3.9
container_name: qbit-peers
volumes: # Change /opt/qbit-peers to your desired location
- /opt/qbit-peers/qbit-peers.py:/app/qbit-peers.py
- /opt/qbit-peers/requirements.txt:/app/requirements.txt
- /opt/qbit-peers/logs:/app/logs
working_dir: /app
command: bash -c "pip install -r requirements.txt && python qbit-peers.py"
# Add any additional compose requirements here