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