docker-compose.yml 809 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. version: '3'
  2. services:
  3. postgres:
  4. build:
  5. context: .
  6. dockerfile: docker/Dockerfile.postgres
  7. restart: unless-stopped
  8. volumes:
  9. - postgresdata:/var/lib/postgresql/data
  10. healthcheck:
  11. test: ["CMD", "pg_isready", "-U", "postgres"]
  12. invidious:
  13. build:
  14. context: .
  15. dockerfile: docker/Dockerfile
  16. restart: unless-stopped
  17. ports:
  18. - "127.0.0.1:3000:3000"
  19. environment:
  20. # Adapted from ./config/config.yml
  21. INVIDIOUS_CONFIG: |
  22. channel_threads: 1
  23. feed_threads: 1
  24. db:
  25. user: kemal
  26. password: kemal
  27. host: postgres
  28. port: 5432
  29. dbname: invidious
  30. full_refresh: false
  31. https_only: false
  32. domain:
  33. depends_on:
  34. - postgres
  35. volumes:
  36. postgresdata: