Advertisement
Guest User

Untitled

a guest
Aug 14th, 2023
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. version: "3.7"
  2.  
  3. x-logging: &default-logging
  4. driver: "json-file"
  5. options:
  6. max-size: "50m"
  7. max-file: "4"
  8.  
  9. services:
  10. proxy:
  11. image: nginx:1-alpine
  12. ports:
  13. # actual and only port facing any connection from outside
  14. # Note, change the left number if port 1236 is already in use on your system
  15. # You could use port 80 if you won't use a reverse proxy
  16. - "1234:8536"
  17. volumes:
  18. - ./nginx_internal.conf:/etc/nginx/nginx.conf:ro,Z
  19. restart: always
  20. logging: *default-logging
  21. depends_on:
  22. - pictrs
  23. - lemmy-ui
  24.  
  25. lemmy:
  26. image: ghcr.io/ubergeek77/lemmy:0.18.0
  27. hostname: lemmy
  28. restart: always
  29. logging: *default-logging
  30. environment:
  31. - RUST_LOG="warn"
  32. volumes:
  33. - ./lemmy.hjson:/config/config.hjson:Z
  34. depends_on:
  35. - postgres
  36. - pictrs
  37.  
  38. lemmy-ui:
  39. image: ghcr.io/ubergeek77/lemmy-ui:0.18.0
  40. environment:
  41. - LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy:8536
  42. - LEMMY_UI_LEMMY_EXTERNAL_HOST=localhost:1234
  43. - LEMMY_UI_HTTPS=true
  44. volumes:
  45. - ./volumes/lemmy-ui/extra_themes:/app/extra_themes
  46. depends_on:
  47. - lemmy
  48. restart: always
  49. logging: *default-logging
  50.  
  51. pictrs:
  52. image: asonix/pictrs:0.4.0
  53. # this needs to match the pictrs url in lemmy.hjson
  54. hostname: pictrs
  55. # we can set options to pictrs like this, here we set max. image size and forced format for conversion
  56. # entrypoint: /sbin/tini -- /usr/local/bin/pict-rs -p /mnt -m 4 --image-format webp
  57. environment:
  58. - PICTRS_OPENTELEMETRY_URL=http://otel:4137
  59. - PICTRS__API_KEY=xiseiXoox9oXaichooy3
  60. - RUST_LOG=debug
  61. - RUST_BACKTRACE=full
  62. - PICTRS__MEDIA__VIDEO_CODEC=vp9
  63. - PICTRS__MEDIA__GIF__MAX_WIDTH=256
  64. - PICTRS__MEDIA__GIF__MAX_HEIGHT=256
  65. - PICTRS__MEDIA__GIF__MAX_AREA=65536
  66. - PICTRS__MEDIA__GIF__MAX_FRAME_COUNT=400
  67. user: 991:991
  68. volumes:
  69. - ./volumes/pictrs:/mnt:Z
  70. restart: always
  71. logging: *default-logging
  72. deploy:
  73. resources:
  74. limits:
  75. memory: 690m
  76.  
  77. postgres:
  78. image: postgres:15-alpine
  79. hostname: postgres
  80. environment:
  81. - POSTGRES_USER=lemmy
  82. - POSTGRES_PASSWORD=xiseiXoox9oXaichooy3
  83. - POSTGRES_DB=lemmy
  84. volumes:
  85. - ./volumes/postgres:/var/lib/postgresql/data:Z
  86. - ./customPostgresql.conf:/etc/postgresql.conf
  87. restart: always
  88. logging: *default-logging
  89.  
  90. postfix:
  91. image: mwader/postfix-relay
  92. environment:
  93. - POSTFIX_myhostname=tw.arkadi.one
  94. restart: "always"
  95. logging: *default-logging
  96.  
Tags: Lemmy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement