WIP: Prebuilt docker image #803

Draft
floatingghost wants to merge 37 commits from customizable-docker-db into develop
2 changed files with 4 additions and 5 deletions
Showing only changes of commit 5e0c61fa8f - Show all commits

View file

@ -54,15 +54,14 @@ RUN ln -s $HOME/bin/pleroma /bin/akkoma
RUN ln -s $HOME/bin/pleroma_ctl /bin/pleroma_ctl
RUN ln -s $HOME/bin/pleroma_ctl /bin/akkoma_ctl
RUN mkdir -p /etc/akkoma
ADD docker-entrypoint.sh $HOME/docker-entrypoint.sh
RUN adduser --system --home /opt/akkoma akkoma
RUN adduser --system --home $HOME akkoma
USER akkoma
ENV AKKOMA_CONFIG_PATH=/opt/akkoma/config/config.exs
VOLUME uploads /opt/akkoma/uploads
VOLUME instance /opt/akkoma/instance
VOLUME config /etc/akkoma/config.exs
VOLUME config /opt/akkoma/config
CMD ["/opt/akkoma/docker-entrypoint.sh"]

View file

@ -10,7 +10,7 @@ mkdir -p docker-setup-tmp
docker compose run \
--rm \
-e "PLEROMA_CTL_RPC_DISABLED=true" \
-v ./docker-setup-tmp:/opt/akkoma/config/\
-v $(pwd)/docker-setup-tmp:/opt/akkoma/config/ \
akkoma ./bin/pleroma_ctl instance gen --no-sql-user --no-db-creation --dbhost db --dbname akkoma --dbuser akkoma --dbpass akkoma --listen-ip 0.0.0.0 --listen-port 4000 --static-dir /opt/akkoma/instance/ --uploads-dir /opt/akkoma/uploads/ --db-configurable true
echo ""