Archive of the USPol Labeler's automatic labeling script. Out-of-date. Must run alongside Ozone. DO NOT OPEN ISSUES OR PULLS -- THEY WILL BE IGNORED/CLOSED
at tip 2.7 kB view raw
1services: 2# Uncomment these only if you're following my full guide or you know what you're doing: 3# ozone: 4# container_name: ozone 5# image: ghcr.io/bluesky-social/ozone:sha-1176067a955c4b50a5d7b03c66fc2eff916f0824 6# #network_mode: host 7# restart: unless-stopped 8# depends_on: 9# postgres: 10# condition: service_healthy 11# env_file: 12# - ./data/ozone.env 13# labels: 14# - 'com.centurylinklabs.watchtower.enable=true' 15# - "traefik.enable=true" 16# - "traefik.http.routers.ozoneuspol.rule=Host(`uspollabeler.blakeslabs.com`)" 17# - "traefik.http.routers.ozoneuspol.entrypoints=https" 18# - "traefik.http.routers.ozoneuspol.tls=true" 19# - "traefik.http.routers.ozoneuspol.tls.certresolver=letsencrypt" 20# postgres: 21# container_name: postgres 22# image: postgres:14.11-bookworm 23# #network_mode: host 24# restart: unless-stopped 25# healthcheck: 26# test: pg_isready -h localhost -U $$POSTGRES_USER 27# interval: 2s 28# timeout: 5s 29# retries: 10 30# volumes: 31# - type: bind 32# source: ./data/postgres 33# target: /var/lib/postgresql/data 34# env_file: 35# - ./data/postgres.env 36# watchtower: 37# container_name: watchtower 38# image: containrrr/watchtower:latest 39# #network_mode: host 40# volumes: 41# - type: bind 42# source: /var/run/docker.sock 43# target: /var/run/docker.sock 44# restart: unless-stopped 45# environment: 46# WATCHTOWER_CLEANUP: true 47# WATCHTOWER_SCHEDULE: '@midnight' 48# WATCHTOWER_LABEL_ENABLE: true 49 50# Uncomment this section and add to enable Redis 51# redis: 52# image: redis 53# volumes: 54# - "./redis-data:/data" 55 star-spangled: 56 build: . 57 #build: ./star-spangled # you might want to use this one instead! 58 command: --poll-reports --crawl-threads 59 volumes: 60 - "./keywords.tsv:/app/keywords.tsv:ro" 61 - "./token-star-spangled-reports.json:/app/login.json" 62 restart: unless-stopped 63 env_file: .env 64 environment: 65 # You can override values from the environment file here. 66 # Useful to apply different settings to different instances. 67 STAR_SPANGLED_POLL_INTERVAL: 300 # 5 minutes 68 #depends_on: 69 # - redis 70# Uncomment the section below for a second instance: 71# star-spangled-firehose: 72# build: ./automator 73# command: --firehose 74# volumes: 75# - "./keywords.tsv:/app/keywords.tsv:ro" 76# - "./token-star-spangled-firehose.json:/app/login.json" 77# # Note: Be sure to change the file name above! 78# restart: unless-stopped 79# env_file: .env 80# environment: 81# star_spangled_poll_interval: 86400 # 24 hours -- just to make it never try to poll 82# depends_on: 83# - redis