]> Untitled Git - lemmy.git/blob - docker/prod/docker-compose.yml
Merge remote-tracking branch 'yerba/main'
[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:0.9.5
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:0.9.5
30     ports:
31       - "1235:1234"
32     restart: always
33     environment:
34       - LEMMY_INTERNAL_HOST=lemmy:8536
35       - LEMMY_EXTERNAL_HOST=localhost:8536
36       - LEMMY_HTTPS=false
37     depends_on: 
38       - lemmy
39
40   pictrs:
41     image: asonix/pictrs:v0.2.5-r0
42     ports: 
43       - "127.0.0.1:8537:8080"
44     user: 991:991
45     volumes:
46       - ./volumes/pictrs:/mnt
47     restart: always
48
49   iframely:
50     image: dogbin/iframely:latest
51     ports:
52       - "127.0.0.1:8061:80"
53     volumes:
54       - ./iframely.config.local.js:/iframely/config.local.js:ro
55     restart: always
56     mem_limit: 100m