]> Untitled Git - lemmy.git/blob - docker/dev/docker-compose.yml
bc42d45626bd901313b486bbab07e09f94d250ce
[lemmy.git] / docker / dev / docker-compose.yml
1 version: '3.3'
2
3 services:
4
5   lemmy:
6     image: lemmy-dev:latest
7     ports:
8       - "8536:8536"
9     restart: always
10     environment:
11       - 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"
12     volumes:
13       - ../lemmy.hjson:/config/config.hjson
14     depends_on: 
15       - pictrs
16       - postgres
17
18   lemmy-ui:
19     image: dessalines/lemmy-ui:dev
20     ports:
21       - "1235:1234"
22     restart: always
23     environment:
24       - LEMMY_INTERNAL_HOST=lemmy:8536
25       - LEMMY_EXTERNAL_HOST=localhost:8536
26       - LEMMY_HTTPS=false
27     depends_on: 
28       - lemmy
29
30   postgres:
31     image: postgres:12-alpine
32     ports:
33       # use a different port so it doesnt conflict with postgres running on the host
34       - "5433:5432"
35     environment:
36       - POSTGRES_USER=lemmy
37       - POSTGRES_PASSWORD=password
38       - POSTGRES_DB=lemmy
39     volumes:
40       - ./volumes/postgres:/var/lib/postgresql/data
41     restart: always
42
43   pictrs:
44     image: asonix/pictrs:v0.2.6-r2
45     ports: 
46       - "8537:8080"
47     user: 991:991
48     volumes:
49       - ./volumes/pictrs:/mnt
50     restart: always