diff --git a/Dockerfile b/Dockerfile index 2520dda..cc08b64 100644 --- a/Dockerfile +++ b/Dockerfile @@ -70,3 +70,5 @@ COPY config.json /gancio/config.json.example VOLUME ["/data"] ENTRYPOINT [ "/bin/sh", "/entrypoint.sh" ] + +CMD ["start", "--config", "/data/config.json"] diff --git a/docker-compose.yml b/docker-compose.yml index d3d6901..62e94f3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,6 @@ services: build: . image: registry.sindominio.net/gancio container_name: gancio - command: [ "/usr/bin/gancio start --config /data/config.json" ] user: "$GANCIO_USER_GROUP" volumes: - $GANCIO_DATA_PATH:/data/ diff --git a/entrypoint.sh b/entrypoint.sh index 01133f8..9b5876b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -10,4 +10,4 @@ mkdir -p /data/uploads # inicia el instalador [ -s /data/config.json ] || TEMPLATE="/usr/share/local/gancio-installer" gancio-installer -exec $@ +exec /usr/bin/gancio $@