]> Untitled Git - lemmy.git/blob - ansible/templates/docker-compose.yml
Merge branch 'master' into iav-arm-musl-dessalines
[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   postgres:
19     image: postgres:12-alpine
20     environment:
21       - POSTGRES_USER=lemmy
22       - POSTGRES_PASSWORD={{ postgres_password }}
23       - POSTGRES_DB=lemmy
24     volumes:
25       - ./volumes/postgres:/var/lib/postgresql/data
26     restart: always
27
28   pictrs:
29     image: asonix/pictrs:amd64-v0.1.0-r9
30     user: 991:991
31     ports:
32       - "127.0.0.1:8537:8080"
33     volumes:
34       - ./volumes/pictrs:/mnt
35     restart: always
36
37   iframely:
38     image: dogbin/iframely:latest
39     ports:
40       - "127.0.0.1:8061:80"
41     volumes:
42       - ./iframely.config.local.js:/iframely/config.local.js:ro
43     restart: always
44
45   postfix:
46     image: mwader/postfix-relay
47     environment:
48       - POSTFIX_myhostname={{ domain }}
49     restart: "always"