]> Untitled Git - lemmy.git/blob - docker/dev/docker-compose.yml
Drone release main (ref #1556) (#1557)
[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=debug
12     volumes:
13       - ../lemmy.hjson:/config/config.hjson
14     depends_on: 
15       - pictrs
16       - postgres
17       - iframely
18
19   lemmy-ui:
20     image: dessalines/lemmy-ui:dev
21     ports:
22       - "1235:1234"
23     restart: always
24     environment:
25       - LEMMY_INTERNAL_HOST=lemmy:8536
26       - LEMMY_EXTERNAL_HOST=localhost:8536
27       - LEMMY_HTTPS=false
28     depends_on: 
29       - lemmy
30
31   postgres:
32     image: postgres:12-alpine
33     ports:
34       # use a different port so it doesnt conflict with postgres running on the host
35       - "5433:5432"
36     environment:
37       - POSTGRES_USER=lemmy
38       - POSTGRES_PASSWORD=password
39       - POSTGRES_DB=lemmy
40     volumes:
41       - ./volumes/postgres:/var/lib/postgresql/data
42     restart: always
43
44   pictrs:
45     image: asonix/pictrs:v0.2.6-r1
46     ports: 
47       - "8537:8080"
48     user: 991:991
49     volumes:
50       - ./volumes/pictrs:/mnt
51     restart: always
52
53   iframely:
54     image: dogbin/iframely:latest
55     ports:
56       - "8061:80"
57     volumes:
58       - ../iframely.config.local.js:/iframely/config.local.js:ro
59     restart: always
60     mem_limit: 200m