]> Untitled Git - lemmy.git/blob - docker/dev/docker-compose.yml
Proxy pictrs requests through Lemmy (fixes #371) (#77)
[lemmy.git] / docker / dev / docker-compose.yml
1 version: '3.3'
2
3 services:
4
5   lemmy:
6     build: 
7       context: ../../
8       dockerfile: docker/dev/Dockerfile
9     ports:
10       - "127.0.0.1:8536:8536"
11     restart: always
12     environment:
13       - RUST_LOG=debug
14     volumes:
15       - ../lemmy.hjson:/config/config.hjson
16     depends_on: 
17       - pictrs
18       - postgres
19       - iframely
20
21   postgres:
22     image: postgres:12-alpine
23     ports:
24       # use a different port so it doesnt conflict with postgres running on the host
25       - "127.0.0.1:5433:5432"
26     environment:
27       - POSTGRES_USER=lemmy
28       - POSTGRES_PASSWORD=password
29       - POSTGRES_DB=lemmy
30     volumes:
31       - ./volumes/postgres:/var/lib/postgresql/data
32     restart: always
33
34   pictrs:
35     image: asonix/pictrs:v0.1.13-r0
36     ports: 
37       - "127.0.0.1:8537:8080"
38     user: 991:991
39     volumes:
40       - ./volumes/pictrs:/mnt
41     restart: always
42
43   iframely:
44     image: dogbin/iframely:latest
45     ports:
46       - "127.0.0.1:8061:80"
47     volumes:
48       - ../iframely.config.local.js:/iframely/config.local.js:ro
49     restart: always