Compare commits
2 Commits
d8a53bacb6
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21e97ada0d | ||
|
|
19653290a6 |
@@ -32,8 +32,8 @@ Create a configuration file or set environment variables:
|
|||||||
```python
|
```python
|
||||||
# main.py configuration
|
# main.py configuration
|
||||||
BASE_URL = "https://www.troostwijkauctions.com"
|
BASE_URL = "https://www.troostwijkauctions.com"
|
||||||
CACHE_DB = "/var/troost-scraper/cache.db"
|
CACHE_DB = "/mnt/okcomputer/output/cache.db"
|
||||||
OUTPUT_DIR = "/var/troost-scraper/output"
|
OUTPUT_DIR = "/mnt/okcomputer/output"
|
||||||
RATE_LIMIT_SECONDS = 0.5
|
RATE_LIMIT_SECONDS = 0.5
|
||||||
MAX_PAGES = 50
|
MAX_PAGES = 50
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -7,12 +7,12 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- traefik_net
|
- traefik_net
|
||||||
volumes:
|
|
||||||
- /opt/apps/scaev/output:/mnt/okcomputer/output
|
|
||||||
environment:
|
environment:
|
||||||
RATE_LIMIT_SECONDS: "0.5"
|
RATE_LIMIT_SECONDS: "0.5"
|
||||||
MAX_PAGES: "50"
|
MAX_PAGES: "50"
|
||||||
DOWNLOAD_IMAGES: "False"
|
DOWNLOAD_IMAGES: "False"
|
||||||
|
volumes:
|
||||||
|
- shared-auction-data:/mnt/okcomputer/output
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.scaev.rule=Host(`scaev.appmodel.nl`)"
|
- "traefik.http.routers.scaev.rule=Host(`scaev.appmodel.nl`)"
|
||||||
@@ -21,7 +21,12 @@ services:
|
|||||||
- "traefik.http.routers.scaev.tls.certresolver=letsencrypt"
|
- "traefik.http.routers.scaev.tls.certresolver=letsencrypt"
|
||||||
- "traefik.http.services.scaev.loadbalancer.server.port=8000"
|
- "traefik.http.services.scaev.loadbalancer.server.port=8000"
|
||||||
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
traefik_net:
|
traefik_net:
|
||||||
external: true
|
external: true
|
||||||
name: traefik_net
|
name: traefik_net
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
shared-auction-data:
|
||||||
|
external: true
|
||||||
Reference in New Issue
Block a user