]> Untitled Git - lemmy.git/blob - ansible/templates/docker-compose.yml
Fixing deploy.sh
[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       - pictshare
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   pictshare:
29     image: hascheksolutions/pictshare:latest
30     ports:
31       - "127.0.0.1:8537:80"
32     volumes:
33       - ./volumes/pictshare:/usr/share/nginx/html/data
34     restart: always
35
36   iframely:
37     image: dogbin/iframely:latest
38     ports:
39       - "127.0.0.1:8061:80"
40     volumes:
41       - ./iframely.config.local.js:/iframely/config.local.js:ro
42     restart: always
43
44   postfix:
45     image: mwader/postfix-relay
46     environment:
47       - POSTFIX_myhostname={{ domain }}
48     restart: "always"