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/dev/Dockerfile
35 # this hostname is used in nginx reverse proxy and also for lemmy ui to connect to the backend, do not change
41 - 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"
44 - ./lemmy.hjson:/config/config.hjson
50 image: dessalines/lemmy-ui:dev
51 # use this to build your local lemmy ui image for development
52 # run docker compose up --build
53 # assuming lemmy-ui is cloned besides lemmy directory
55 # context: ../../../lemmy-ui
56 # dockerfile: dev.dockerfile
60 # this needs to match the hostname defined in the lemmy service
61 - LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy:8536
62 # set the outside hostname here
63 - LEMMY_UI_LEMMY_EXTERNAL_HOST=localhost:1236
71 image: asonix/pictrs:0.3.1
72 # this needs to match the pictrs url in lemmy.hjson
74 # we can set options to pictrs like this, here we set max. image size and forced format for conversion
75 # entrypoint: /sbin/tini -- /usr/local/bin/pict-rs -p /mnt -m 4 --image-format webp
79 - PICTRS_OPENTELEMETRY_URL=http://otel:4137
80 - PICTRS__API_KEY=API_KEY
85 - ./volumes/pictrs:/mnt
89 image: postgres:14-alpine
90 # this needs to match the database host in lemmy.hson
92 command: ["postgres", "-c", "session_preload_libraries=auto_explain", "-c", "auto_explain.log_min_duration=5ms", "-c", "auto_explain.log_analyze=true"]
95 # adding the external facing network to allow direct db access for devs
98 # use a different port so it doesnt conflict with potential postgres db running on the host
101 - POSTGRES_USER=lemmy
102 - POSTGRES_PASSWORD=password
105 - ./volumes/postgres:/var/lib/postgresql/data
109 image: otel/opentelemetry-collector:latest
110 command: --config otel-local-config.yaml
119 target: /otel-local-config.yaml
120 restart: unless-stopped
125 image: jaegertracing/all-in-one:1
131 # To view traces, visit http://localhost:16686
133 restart: unless-stopped