Skip to content
Snippets Groups Projects
Commit 335c8310 authored by Romain de Laage's avatar Romain de Laage
Browse files

Prise en compte des commentaires de Quentin

parent 3002b5ea
No related branches found
No related tags found
No related merge requests found
FROM debian:buster
ARG LUFI_BUILD_VERSION=0.04.6
ARG TINI_BUILD_VERSION=v0.18.0
RUN apt-get update \
&& apt-get -yq install build-essential libssl-dev libio-socket-ssl-perl liblwp-protocol-https-perl libpq-dev git \
&& cpan -a && cpan Carton \
&& git clone https://framagit.org/fiat-tux/hat-softwares/lufi.git /lufi
&& apt-get -yq install build-essential libssl-dev libio-socket-ssl-perl liblwp-protocol-https-perl libpq-dev wget unzip \
&& apt-get clean && cpan Carton \
&& wget https://github.com/ldidry/lufi/archive/${LUFI_BUILD_VERSION}.zip && unzip ${LUFI_BUILD_VERSION}.zip \
&& wget https://github.com/krallin/tini/releases/download/${TINI_BUILD_VERSION}/tini-amd64 && mv tini-amd64 tini \
&& rm ${LUFI_BUILD_VERSION}.zip && mv lufi-${LUFI_BUILD_VERSION} lufi
COPY lufi.conf /lufi/lufi.conf
WORKDIR /lufi
RUN carton install --deployment --without=test --without=sqlite --without=mysql
VOLUME /lufi/data /lufi/files
RUN carton install --deployment --without=test --without=sqlite --without=mysql && chmod +x /tini
ADD tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]
EXPOSE 8081
CMD ["carton", "exec", "hypnotoad", "-f", "/lufi/script/lufi"]
version: '3'
services:
lufidb:
image: postgres
image: postgres:12
container_name: lufidb
restart: always
networks:
- lufi
environment:
- POSTGRES_PASSWORD=passwd
- POSTGRES_USER=lufidb
env_file: lufi.secrets
volumes:
- /var/lib/postgresql/data
lufi:
......@@ -18,12 +14,6 @@ services:
- lufidb
ports:
- 8081:8081
networks:
- lufi
volumes:
- /lufi/data
- /lufi/files
networks:
lufi:
external: true
......@@ -10,7 +10,7 @@
listen => ['http://0.0.0.0:8081'],
# if you use Lufi behind a reverse proxy like Nginx, you want to set proxy to 1
# if you use Lufi directly, let it commented
#proxy => 1,
proxy => 1,
# Please read http://mojolicious.org/perldoc/Mojo/Server/Hypnotoad#workers
# to adjust this to your server
......
POSTGRES_PASSWORD = passwd,
File deleted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment