x-logging: &default-logging driver: "json-file" options: max-size: "50m" max-file: "4" services: proxy: image: nginx:1-alpine ports: - "10633:8536" # Choose an available port on your server! volumes: - /data/lemmy/nginx_internal.conf:/etc/nginx/nginx.conf:ro,Z - /data/lemmy/proxy_params:/etc/nginx/proxy_params:ro,Z restart: always logging: *default-logging networks: - lemmy-net lemmy: image: dessalines/lemmy:0.19.8 hostname: lemmy restart: always logging: *default-logging environment: - RUST_LOG="warn" volumes: - /data/lemmy/lemmy.hjson:/config/config.hjson:Z depends_on: - postgres networks: - lemmy-net lemmy-ui: image: dessalines/lemmy-ui:0.19.8 environment: - LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy:8536 - LEMMY_UI_LEMMY_EXTERNAL_HOST=lemmy.ml - LEMMY_UI_HTTPS=true volumes: - /data/lemmy/lemmy-ui/extra_themes:/app/extra_themes restart: always logging: *default-logging networks: - lemmy-net pictrs: image: asonix/pictrs:0.5.16 hostname: pictrs environment: - PICTRS_OPENTELEMETRY_URL=http://otel:4137 - PICTRS__SERVER__API_KEY=<< here your lemmy postgres password >> - RUST_BACKTRACE=full - PICTRS__MEDIA__VIDEO__VIDEO_CODEC=vp9 - PICTRS__MEDIA__ANIMATION__MAX_WIDTH=256 - PICTRS__MEDIA__ANIMATION__MAX_HEIGHT=256 - PICTRS__MEDIA__ANIMATION__MAX_FRAME_COUNT=400 user: 991:991 # This 991 will be used to define the UID:GID you need to set ownership of the folder to, as stated above... volumes: - /data/lemmy/pictrs:/mnt:Z # this is the folder of which you need to set ownership. This folder must exist before first launch restart: always logging: *default-logging networks: - lemmy-net postgres: image: pgautoupgrade/pgautoupgrade:17-alpine hostname: postgres environment: - POSTGRES_USER=lemmy - POSTGRES_PASSWORD=<< here your lemmy postgres password >> # the same as in the lemmy hjson above - POSTGRES_DB=lemmy shm_size: 1g volumes: - /data/lemmy/postgres:/var/lib/postgresql/data:Z - /data/lemmy/customPostgresql.conf:/etc/postgresql.conf restart: always logging: *default-logging networks: - lemmy-net postfix: image: mwader/postfix-relay environment: - POSTFIX_myhostname="lemmy.mydomain.com" # DO NOT put the "https://" here restart: "always" logging: *default-logging networks: - lemmy-net networks: lemmy-net: dns_enabled: true # this is very important for the internal proxy