4 # communication to web and clients
6 # communication between lemmy services
18 # actual and only port facing any connection from outside
21 - ./nginx.conf:/etc/nginx/nginx.conf:ro
28 image: dessalines/lemmy:dev
29 # use this to build your local lemmy server image for development
30 # run docker compose up --build
33 # dockerfile: docker/dev/Dockerfile
34 # this hostname is used in nginx reverse proxy and also for lemmy ui to connect to the backend, do not change
40 - 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"
43 - ./lemmy.hjson:/config/config.hjson
49 image: dessalines/lemmy-ui:dev
50 # use this to build your local lemmy ui image for development
51 # run docker compose up --build
52 # assuming lemmy-ui is cloned besides lemmy directory
54 # context: ../../../lemmy-ui
55 # dockerfile: Dockerfile
59 # this needs to match the hostname defined in the lemmy service
60 - LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy:8536
61 # set the outside hostname here
62 - LEMMY_UI_LEMMY_EXTERNAL_HOST=localhost:1236
70 image: asonix/pictrs:0.3.1
71 # this needs to match the pictrs url in lemmy.hjson
73 # we can set options to pictrs like this, here we set max. image size and forced format for conversion
74 # entrypoint: /sbin/tini -- /usr/local/bin/pict-rs -p /mnt -m 4 --image-format webp
78 - PICTRS_OPENTELEMETRY_URL=http://otel:4137
79 - PICTRS__API_KEY=API_KEY
84 - ./volumes/pictrs:/mnt
88 image: postgres:14-alpine
89 # this needs to match the database host in lemmy.hson
91 command: ["postgres", "-c", "session_preload_libraries=auto_explain", "-c", "auto_explain.log_min_duration=5ms", "-c", "auto_explain.log_analyze=true"]
94 # adding the external facing network to allow direct db access for devs
97 # use a different port so it doesnt conflict with potential postgres db running on the host
100 - POSTGRES_USER=lemmy
101 - POSTGRES_PASSWORD=password
104 - ./volumes/postgres:/var/lib/postgresql/data
108 image: otel/opentelemetry-collector:latest
109 command: --config otel-local-config.yaml
118 target: /otel-local-config.yaml
119 restart: unless-stopped
124 image: jaegertracing/all-in-one:1
130 # To view traces, visit http://localhost:16686
132 restart: unless-stopped