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