* Fixing docker dev build.
* Remove volume mount files.
* Fixing pictrs.
* Addressing PR comments.
- lemmy-ui
lemmy:
- image: dessalines/lemmy:dev
+ # image: dessalines/lemmy:dev
# use this to build your local lemmy server image for development
# run docker compose up --build
- # build:
- # context: ../..
- # dockerfile: docker/dev/Dockerfile
+ build:
+ context: ../..
+ dockerfile: docker/dev/Dockerfile
# this hostname is used in nginx reverse proxy and also for lemmy ui to connect to the backend, do not change
hostname: lemmy
networks:
mkdir -p volumes/pictrs
sudo chown -R 991:991 volumes/pictrs
-sudo docker-compose down
-sudo docker build ../../ --file ../dev/Dockerfile -t lemmy-dev:latest
-sudo docker-compose pull --ignore-pull-failures || true
-sudo docker-compose up -d
+sudo docker-compose up -d --build
+++ /dev/null
-#!/bin/sh
-set -e
-
-# This script uses a Dockerfile that takes advantage of docker volume mounts,
-# And runs on an ubuntu image. A little faster for development than the other
-# script
-
-mkdir -p volumes/pictrs
-sudo chown -R 991:991 volumes/pictrs
-sudo docker-compose down
-sudo docker build ../../ --file ../dev/volume_mount.dockerfile -t lemmy-dev:latest
-sudo docker-compose pull --ignore-pull-failures || true
-sudo docker-compose up
# release / stable version.
setup: {
- # username for the admin user
admin_username: "lemmy"
- # password for the admin user
admin_password: "lemmylemmy"
- # name of the site (can be changed later)
site_name: "lemmy-dev"
}
- opentelemetry_url: "http://otel:4137"
+ database: {
+ host: "postgres"
+ }
- # the domain name of your instance (eg "lemmy.ml")
hostname: "localhost"
- # address where lemmy should listen for incoming requests
bind: "0.0.0.0"
- # port where lemmy should listen for incoming requests
port: 8536
-}
\ No newline at end of file
+
+ pictrs: {
+ url: "http://pictrs:8080/"
+ # api_key: "API_KEY"
+ }
+
+ opentelemetry_url: "http://otel:4137"
+}
+++ /dev/null
-# syntax=docker/dockerfile:experimental
-
-# Warning: this will not pick up migrations unless there are code changes
-FROM rust:1 as rust
-
-ENV HOME=/home/root
-
-WORKDIR /app
-
-# Copy the source folders
-COPY . ./
-RUN echo "pub const VERSION: &str = \"$(git describe --tag)\";" > "crates/utils/src/version.rs"
-
-# Build for debug
-RUN --mount=type=cache,target=/usr/local/cargo/registry \
- --mount=type=cache,target=/app/target \
- cargo build
-RUN --mount=type=cache,target=/app/target \
- cp target/debug/lemmy_server lemmy_server
-
-FROM ubuntu:20.04
-
-# Install libpq for postgres
-RUN apt-get update -y
-RUN apt-get install -y libpq-dev ca-certificates
-
-# Copy resources
-COPY --from=rust /app/lemmy_server /app/lemmy
-
-EXPOSE 8536
-CMD ["/app/lemmy"]