forked from datawhores/OF-Scraper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
28 lines (25 loc) · 1.12 KB
/
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
26
27
28
version: "3"
services:
ofscraper:
container_name: ofscraper
image: datawhores/of-scraper:latest
# specify the uid and gid you want to use, if not 1000:1000
user: "${UID:-1000}:${GID:-1000}"
volumes:
# change the host path to wherever your config dir/file is
- /home/john/.config/ofscraper:/home/ofscraper/.config/ofscraper
# you can use any path for the following, so long as
# you update your config file accordingly, and ensure that
# permissions are correct
- ./bin:/home/ofscraper/bin
stdin_open: true # docker run -i
tty: true # docker run -t
# use the following command if you want to interact with the script.
command: ["/bin/bash", "-c", "sleep infinity"]
# bring the container up with `docker compose up -d` and then
# run it with something like:
# `docker compose exec -it ofscraper ofscraper`
# (optionally, you can specify additional arguments)
# alternatively, if you want the script to run automatically with a set of arguments,
# use something like the following command instead:
# command: "ofscraper --username ALL --posts all"