diff --git a/.gitignore b/.gitignore index d6e1f5ec5..f54288a89 100644 --- a/.gitignore +++ b/.gitignore @@ -150,6 +150,7 @@ $RECYCLE.BIN/ .sites *.log .settings/* +/settings/ extras/OFLogin/geckodriver.exe extras/OFLogin/chromedriver.exe extras/OFMetadataFixer/* diff --git a/Dockerfile b/Dockerfile index 8feed31fd..8e321567c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,6 +44,3 @@ ENV PYTHONUNBUFFERED 1 # Changes to the new user for security reasons. USER onlyfans - -# Specifies the main executable for when the container starts. -CMD [ "python", "./start_ofd.py" ] diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 000000000..e8444ee81 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,24 @@ +version: "3.9" + +services: + onlyfans: + image: onlyfans:latest + container_name: onlyfans + build: + context: ./ + dockerfile: ./Dockerfile + restart: unless-stopped + networks: + - main + stdin_open: true + tty: true + command: python start_ofd.py + volumes: + - ./settings/:/onlyfans/.settings + - ./settings/profiles/:/onlyfans/.profiles + - ./settings/sites/:/onlyfans/.sites + +networks: + main: + name: main + driver: bridge diff --git a/requirements.txt b/requirements.txt index 71d3bbbac..a2440ef45 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,19 +1,19 @@ -requests +aiohttp +aiohttp_socks +alembic beautifulsoup4 -urllib3 -win32-setctime -python-socks[asyncio] -psutil -python-dateutil +jsonpickle lxml mergedeep -jsonpickle -ujson -sqlalchemy==1.4.20 -alembic -tqdm +psutil +python-dateutil +python-socks[asyncio] +requests selenium selenium-wire==2.1.2 +sqlalchemy==1.4.20 +tqdm +ujson +urllib3 user_agent -aiohttp -aiohttp_socks +win32-setctime