4 # communication to web and clients
6 # communication between lemmy services
18 # only ports facing any connection from outside
22 - ./nginx.conf:/etc/nginx/nginx.conf:ro
23 # setup your certbot and letsencrypt config
24 - ./certbot:/var/www/certbot
25 - ./letsencrypt:/etc/letsencrypt/live
32 image: dessalines/lemmy:0.16.7
37 - RUST_LOG="warn,lemmy_server=info,lemmy_api=info,lemmy_api_common=info,lemmy_api_crud=info,lemmy_apub=info,lemmy_db_schema=info,lemmy_db_views=info,lemmy_db_views_actor=info,lemmy_db_views_moderator=info,lemmy_routes=info,lemmy_utils=info,lemmy_websocket=info"
39 - ./lemmy.hjson:/config/config.hjson
45 image: dessalines/lemmy-ui:0.16.7
49 # this needs to match the hostname defined in the lemmy service
50 - LEMMY_INTERNAL_HOST=lemmy:8536
51 # set the outside hostname here
52 - LEMMY_EXTERNAL_HOST=localhost:1236
59 image: asonix/pictrs:0.3.1
60 # this needs to match the pictrs url in lemmy.hjson
62 # we can set options to pictrs like this, here we set max. image size and forced format for conversion
63 # entrypoint: /sbin/tini -- /usr/local/bin/pict-rs -p /mnt -m 4 --image-format webp
67 - PICTRS__API_KEY=API_KEY
70 - ./volumes/pictrs:/mnt
74 image: postgres:14-alpine
75 # this needs to match the database host in lemmy.hson
81 - POSTGRES_PASSWORD=password
84 - ./volumes/postgres:/var/lib/postgresql/data