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

use init in docker-compose instead of tini + env file

parent 0c1b81b8
No related branches found
No related tags found
No related merge requests found
......@@ -2,22 +2,17 @@ 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 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 && chmod +x /tini
ENTRYPOINT ["/tini", "--"]
RUN carton install --deployment --without=test --without=sqlite --without=mysql
CMD ["carton", "exec", "hypnotoad", "-f", "/lufi/script/lufi"]
......
version: '3'
version: "3.7"
volumes:
lufidb-data:
......@@ -10,17 +10,15 @@ services:
image: postgres:12
container_name: lufidb
restart: always
# env_file:
# - lufi.env
environment:
- POSTGRES_USER=lufidb
- POSTGRES_PASSWORD=passwd
env_file:
- lufi.env
volumes:
- lufidb-data:/var/lib/postgresql/data
lufi:
image: lufi
container_name: lufi
init: true
depends_on:
- lufidb
ports:
......
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