]> Untitled Git - lemmy.git/blob - ansible/templates/docker-compose.yml
Upgrading pictrs to v0.2.5 (#1249)
[lemmy.git] / ansible / templates / docker-compose.yml
1 version: '3.3'
2
3 services:
4   lemmy:
5     image: {{ lemmy_docker_image }}
6     ports:
7       - "127.0.0.1:8536:8536"
8     restart: always
9     environment:
10       - RUST_LOG=error
11     volumes:
12       - ./lemmy.hjson:/config/config.hjson:ro
13     depends_on:
14       - postgres
15       - pictrs
16       - iframely
17
18   lemmy-ui:
19     image: {{ lemmy_docker_ui_image }}
20     ports:
21       - "127.0.0.1:1235:1234"
22     restart: always
23     environment:
24       - LEMMY_INTERNAL_HOST=lemmy:8536
25       - LEMMY_EXTERNAL_HOST={{ domain }}
26       - LEMMY_HTTPS=true
27     depends_on: 
28       - lemmy
29
30   postgres:
31     image: postgres:12-alpine
32     environment:
33       - POSTGRES_USER=lemmy
34       - POSTGRES_PASSWORD={{ postgres_password }}
35       - POSTGRES_DB=lemmy
36     volumes:
37       - ./volumes/postgres:/var/lib/postgresql/data
38     restart: always
39
40   pictrs:
41     image: asonix/pictrs:v0.2.5-r0
42     user: 991:991
43     ports:
44       - "127.0.0.1:8537:8080"
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
57   postfix:
58     image: mwader/postfix-relay
59     environment:
60       - POSTFIX_myhostname={{ domain }}
61     restart: "always"