]> Untitled Git - lemmy.git/blob - ansible/templates/docker-compose.yml
Merge remote-tracking branch 'upstream/master'
[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     volumes:
10       - ./lemmy.hjson:/config/config.hjson:ro
11     depends_on:
12       - lemmy_db
13       - lemmy_pictshare
14
15   lemmy_db:
16     image: postgres:12-alpine
17     environment:
18       - POSTGRES_USER=lemmy
19       - POSTGRES_PASSWORD={{ postgres_password }}
20       - POSTGRES_DB=lemmy
21     volumes:
22       - lemmy_db:/var/lib/postgresql/data
23     restart: always
24
25   lemmy_pictshare:
26     image: shtripok/pictshare:latest
27     ports:
28       - "127.0.0.1:8537:80"
29     volumes:
30       - lemmy_pictshare:/usr/share/nginx/html/data
31     restart: always
32
33   postfix:
34     image: mwader/postfix-relay
35     environment:
36       - POSTFIX_myhostname={{ domain }}
37     restart: "always"
38 volumes:
39   lemmy_db:
40   lemmy_pictshare: