]> Untitled Git - lemmy.git/blob - docker/prod/docker-compose.yml
Isomorphic docker (#1124)
[lemmy.git] / docker / prod / docker-compose.yml
1 version: '2.2'
2
3 services:
4   postgres:
5     image: postgres:12-alpine
6     environment:
7       - POSTGRES_USER=lemmy
8       - POSTGRES_PASSWORD=password
9       - POSTGRES_DB=lemmy
10     volumes:
11       - ./volumes/postgres:/var/lib/postgresql/data
12     restart: always
13
14   lemmy:
15     image: dessalines/lemmy:v0.7.57
16     ports:
17       - "127.0.0.1:8536:8536"
18     restart: always
19     environment:
20       - RUST_LOG=error
21     volumes:
22       - ./lemmy.hjson:/config/config.hjson
23     depends_on:
24       - postgres
25       - pictrs
26       - iframely
27
28   lemmy-ui:
29     image: dessalines/lemmy-ui:v0.0.14
30     ports:
31       - "1235:1234"
32     environment:
33       - LEMMY_INTERNAL_HOST=lemmy:8536
34       - LEMMY_EXTERNAL_HOST=localhost:8536
35       - LEMMY_HTTPS=false
36     depends_on: 
37       - lemmy
38
39   pictrs:
40     image: asonix/pictrs:v0.1.13-r0
41     ports: 
42       - "127.0.0.1:8537:8080"
43     user: 991:991
44     volumes:
45       - ./volumes/pictrs:/mnt
46     restart: always
47
48   iframely:
49     image: dogbin/iframely:latest
50     ports:
51       - "127.0.0.1:8061:80"
52     volumes:
53       - ./iframely.config.local.js:/iframely/config.local.js:ro
54     restart: always
55     mem_limit: 100m