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