]> Untitled Git - lemmy.git/blob - docker/dev/docker-compose.yml
Opentelemetry (#1992)
[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_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       - otel
28
29   lemmy-ui:
30     image: dessalines/lemmy-ui:0.14.3
31     restart: always
32     environment:
33       - LEMMY_INTERNAL_HOST=lemmy:8536
34       - LEMMY_EXTERNAL_HOST=localhost:1234
35       - LEMMY_HTTPS=false
36     depends_on: 
37       - lemmy
38
39   postgres:
40     image: postgres:12-alpine
41     ports:
42       # use a different port so it doesnt conflict with postgres running on the host
43       - "5433:5432"
44     environment:
45       - POSTGRES_USER=lemmy
46       - POSTGRES_PASSWORD=password
47       - POSTGRES_DB=lemmy
48     volumes:
49       - ./volumes/postgres:/var/lib/postgresql/data
50     restart: always
51
52   pictrs:
53     image: asonix/pictrs:0.3.0-beta.11
54     user: 991:991
55     environment:
56       - PICTRS_OPENTELEMETRY_URL=http://otel:4137
57     volumes:
58       - ./volumes/pictrs:/mnt
59     restart: always
60     depends_on:
61       - otel
62
63   otel:
64     image: otel/opentelemetry-collector:latest
65     command: --config otel-local-config.yaml
66     ports:
67       - "4317:4317"
68     volumes:
69       - type: bind
70         source: ./otel.yml
71         target: /otel-local-config.yaml
72     restart: always
73     depends_on:
74       - jaeger
75
76   jaeger:
77     image: jaegertracing/all-in-one:1
78     ports:
79       - "14250:14250"
80       # To view traces, visit http://localhost:16686
81       - "16686:16686"
82     restart: always