]> Untitled Git - lemmy.git/blob - docker/dev/docker-compose.yml
Use pictrs instead of pictshare
[lemmy.git] / docker / dev / docker-compose.yml
1 version: '3.3'
2
3 services:
4   nginx:
5     image: nginx:1.19-alpine
6     ports:
7       - "8536:8536"
8     volumes:
9       - ./nginx.conf:/etc/nginx/nginx.conf
10     depends_on:
11       - lemmy
12       - pictrs
13       - iframely
14     restart: "always"
15
16   lemmy:
17     build: 
18       context: ../../
19       dockerfile: docker/dev/Dockerfile
20     restart: always
21     environment:
22       - RUST_LOG=debug
23     volumes:
24       - ../lemmy.hjson:/config/config.hjson
25     depends_on: 
26       - postgres
27       - iframely
28
29   postgres:
30     image: postgres:12-alpine
31     environment:
32       - POSTGRES_USER=lemmy
33       - POSTGRES_PASSWORD=password
34       - POSTGRES_DB=lemmy
35     volumes:
36       - ./volumes/postgres:/var/lib/postgresql/data
37     restart: always
38
39   pictrs:
40     image: asonix/pictrs:amd64-v0.1.0-r9
41     user: 991:991
42     volumes:
43       - ./volumes/pictrs:/mnt
44     restart: always
45
46   iframely:
47     image: dogbin/iframely:latest
48     volumes:
49       - ../iframely.config.local.js:/iframely/config.local.js:ro
50     restart: always