]> Untitled Git - lemmy.git/blob - docker/dev/docker-compose.yml
Adding admin purging of DB items and pictures. #904 #1331 (#1809)
[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       - "6669:6669"
20     restart: always
21     environment:
22       - 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"
23     volumes:
24       - ../lemmy.hjson:/config/config.hjson
25     depends_on: 
26       - pictrs
27       - postgres
28       - otel
29
30   lemmy-ui:
31     image: dessalines/lemmy-ui:0.16.5
32     restart: always
33     environment:
34       - LEMMY_INTERNAL_HOST=lemmy:8536
35       - LEMMY_EXTERNAL_HOST=localhost:1234
36       - LEMMY_HTTPS=false
37       - LEMMY_UI_DEBUG=true
38     depends_on: 
39       - lemmy
40
41   postgres:
42     image: postgres:12-alpine
43     ports:
44       # use a different port so it doesnt conflict with postgres running on the host
45       - "5433:5432"
46     environment:
47       - POSTGRES_USER=lemmy
48       - POSTGRES_PASSWORD=password
49       - POSTGRES_DB=lemmy
50     volumes:
51       - ./volumes/postgres:/var/lib/postgresql/data
52     restart: always
53
54   pictrs:
55     image: asonix/pictrs:0.3.1
56     user: 991:991
57     environment:
58       - PICTRS_OPENTELEMETRY_URL=http://otel:4137
59       - PICTRS__API_KEY=API_KEY
60     ports:
61       - "6670:6669"
62       - "8080:8080"
63     volumes:
64       - ./volumes/pictrs:/mnt
65     restart: always
66     depends_on:
67       - otel
68
69   otel:
70     image: otel/opentelemetry-collector:latest
71     command: --config otel-local-config.yaml
72     ports:
73       - "4317:4317"
74     volumes:
75       - type: bind
76         source: ./otel.yml
77         target: /otel-local-config.yaml
78     restart: always
79     depends_on:
80       - jaeger
81
82   jaeger:
83     image: jaegertracing/all-in-one:1
84     ports:
85       - "14250:14250"
86       # To view traces, visit http://localhost:16686
87       - "16686:16686"
88     restart: always