]> Untitled Git - lemmy.git/blob - docker/dev/docker-compose.yml
Version v0.8.6
[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   lemmy-ui:
19     image: dessalines/lemmy-ui:v0.8.6
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.5-r0
45     ports: 
46       - "8537:8080"
47     user: 991:991
48     volumes:
49       - ./volumes/pictrs:/mnt
50     restart: always
51
52   iframely:
53     image: dogbin/iframely:latest
54     ports:
55       - "8061:80"
56     volumes:
57       - ../iframely.config.local.js:/iframely/config.local.js:ro
58     restart: always