diff --git a/projects/cwa/compose.yaml b/projects/cwa/compose.yaml index 221cae7..d771aa0 100644 --- a/projects/cwa/compose.yaml +++ b/projects/cwa/compose.yaml @@ -1,4 +1,27 @@ +version: "3.8" services: + gluetun-cwa: + image: qmcgaw/gluetun + container_name: gluetun-cwa + cap_add: + - NET_ADMIN + devices: + - /dev/net/tun:/dev/net/tun + ports: + - 8069:8084 + volumes: + - ./gluetun:/gluetun + - ./gluetun/auth/config.toml:/gluetun/auth/config.toml:ro + environment: + - VPN_SERVICE_PROVIDER=nordvpn + - HTTP_CONTROL_SERVER_AUTH_CONFIG_FILEPATH=/gluetun/auth/config.toml + - VPN_TYPE=wireguard + - WIREGUARD_PRIVATE_KEY=${WIREGUARD_PRIVATE_KEY} + - WIREGUARD_ADDRESSES=10.5.0.2/32 + - SERVER_COUNTRIES='United Kingdom" + - UPDATER_PERIOD=24h + restart: unless-stopped + calibre-web-automated: image: crocodilestick/calibre-web-automated:latest container_name: cwa @@ -12,3 +35,28 @@ services: ports: - 8060:8083 restart: unless-stopped + + calibre-web-automated-book-downloader: + image: ghcr.io/calibrain/calibre-web-automated-book-downloader:latest + container_name: cwa-downloader + network_mode: service:gluetun-cwa + depends_on: + - gluetun-cwa + environment: + - FLASK_PORT=8084 + - LOG_LEVEL=info + - BOOK_LANGUAGE=en + - USE_BOOK_TITLE=true + - TZ=Europe/London + - APP_ENV=prod + - UID=1000 + - GID=100 + healthcheck: + test: [ "CMD", "ping", "-c", "1", "www.google.com" ] + interval: 60s + retries: 3 + start_period: 20s + timeout: 10s + restart: unless-stopped + volumes: + - ./cwa-book-ingest:/cwa-book-ingest \ No newline at end of file