4 # communication to web and clients
6 # communication between lemmy services
18 # actual and only port facing any connection from outside
22 - ./nginx.conf:/etc/nginx/nginx.conf:ro
29 # image: dessalines/lemmy:dev
30 # use this to build your local lemmy server image for development
31 # run docker compose up --build
34 dockerfile: docker/Dockerfile
36 # RUST_RELEASE_MODE: release
37 # this hostname is used in nginx reverse proxy and also for lemmy ui to connect to the backend, do not change
43 - RUST_LOG="warn,lemmy_server=debug,lemmy_api=debug,lemmy_api_common=debug,lemmy_api_crud=debug,lemmy_apub=debug,lemmy_db_schema=debug,lemmy_db_views=debug,lemmy_db_views_actor=debug,lemmy_db_views_moderator=debug,lemmy_routes=debug,lemmy_utils=debug,lemmy_websocket=debug"
46 - ./lemmy.hjson:/config/config.hjson
52 image: dessalines/lemmy-ui:0.17.1
53 # use this to build your local lemmy ui image for development
54 # run docker compose up --build
55 # assuming lemmy-ui is cloned besides lemmy directory
57 # context: ../../../lemmy-ui
58 # dockerfile: dev.dockerfile
62 # this needs to match the hostname defined in the lemmy service
63 - LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy:8536
64 # set the outside hostname here
65 - LEMMY_UI_LEMMY_EXTERNAL_HOST=localhost:1236
73 image: asonix/pictrs:0.3.1
74 # this needs to match the pictrs url in lemmy.hjson
76 # we can set options to pictrs like this, here we set max. image size and forced format for conversion
77 # entrypoint: /sbin/tini -- /usr/local/bin/pict-rs -p /mnt -m 4 --image-format webp
81 - PICTRS_OPENTELEMETRY_URL=http://otel:4137
82 - PICTRS__API_KEY=API_KEY
87 - ./volumes/pictrs:/mnt
91 image: postgres:15-alpine
92 # this needs to match the database host in lemmy.hson
93 # Tune your settings via
94 # https://pgtune.leopard.in.ua/#/
95 # You can use this technique to add them here
96 # https://stackoverflow.com/a/30850095/1655478
100 "-c", "session_preload_libraries=auto_explain",
101 "-c", "auto_explain.log_min_duration=5ms",
102 "-c", "auto_explain.log_analyze=true"
106 # adding the external facing network to allow direct db access for devs
109 # use a different port so it doesnt conflict with potential postgres db running on the host
112 - POSTGRES_USER=lemmy
113 - POSTGRES_PASSWORD=password
116 - ./volumes/postgres:/var/lib/postgresql/data
120 image: otel/opentelemetry-collector:latest
121 command: --config otel-local-config.yaml
130 target: /otel-local-config.yaml
131 restart: unless-stopped
136 image: jaegertracing/all-in-one:1
142 # To view traces, visit http://localhost:16686
144 restart: unless-stopped