]> Untitled Git - lemmy.git/blob - docker/dev/docker-compose.yml
Dont pass accept-encoding header to pictrs (ref #1734) (#1738)
[lemmy.git] / docker / dev / docker-compose.yml
1 version: '3.3'
2
3 services:
4   nginx:
5     image: nginx:1-alpine
6     ports:
7       - "1236:1236"
8     volumes:
9       - ./nginx.conf:/etc/nginx/nginx.conf
10     restart: always
11     depends_on:
12       - pictrs
13       - lemmy-ui
14
15   lemmy:
16     image: lemmy-dev:latest
17     ports:
18       - "8536:8536"
19     restart: always
20     environment:
21       - RUST_LOG="warn,lemmy_server=debug,lemmy_api=debug,lemmy_api_common=debug,lemmy_api_crud=debug,lemmy_apub=debug,lemmy_db_queries=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"
22     volumes:
23       - ../lemmy.hjson:/config/config.hjson
24     depends_on: 
25       - pictrs
26       - postgres
27
28   lemmy-ui:
29     image: dessalines/lemmy-ui:dev
30     restart: always
31     environment:
32       - LEMMY_INTERNAL_HOST=lemmy:8536
33       - LEMMY_EXTERNAL_HOST=localhost:1234
34       - LEMMY_HTTPS=false
35     depends_on: 
36       - lemmy
37
38   postgres:
39     image: postgres:12-alpine
40     ports:
41       # use a different port so it doesnt conflict with postgres running on the host
42       - "5433:5432"
43     environment:
44       - POSTGRES_USER=lemmy
45       - POSTGRES_PASSWORD=password
46       - POSTGRES_DB=lemmy
47     volumes:
48       - ./volumes/postgres:/var/lib/postgresql/data
49     restart: always
50
51   pictrs:
52     image: asonix/pictrs:v0.2.6-r2
53     user: 991:991
54     volumes:
55       - ./volumes/pictrs:/mnt
56     restart: always