LinkStackOrg / linkstack-docker

A simple to set up docker variant of LinkStack. LinkStack is a highly customizable link sharing platform with an intuitive, easy to use user interface.
https://linkstack.org/docker
GNU Affero General Public License v3.0
349 stars 43 forks source link

cant deploy #113

Closed wildmarkos closed 2 days ago

wildmarkos commented 10 months ago

seems that there is an apache error when trying to deploy that ends giving error 400 in a fresh deployment... can you help me to deploy it in Render.com for example?

lastsamurai26 commented 10 months ago

Can you show us your docker compose. Iff you using your own folder and not the docker volume please fill the folder on your own and set inside of the container apache:apache to the folders

wildmarkos commented 10 months ago

trying to deploy via: https://hub.docker.com/r/linkstackorg/linkstack

it is using: https://github.com/LinkStackOrg/linkstack-docker/blob/main/docker-compose.yml

also tested with some changes in docker-compose.yml via fork, with not success. here: https://github.com/wildmarkos/linkstack-docker/blob/main/docker-compose.yml

investigating seems that could be that free accs doesnt have storage in Render.com(?)

wildmarkos commented 10 months ago

Seems that is the same issue #111

lastsamurai26 commented 10 months ago

ok if you are using this volumes:

if you using this volumes:

and at the End of the file

volumes: ls_data: the it works without filling

wildmarkos commented 10 months ago

updated like this: https://github.com/wildmarkos/linkstack-docker/blob/main/docker-compose.yml

but seems that is problem that the free version of render doesnt support mount storage, can it be the problem? is there a workaround to deplot it without storage?

lastsamurai26 commented 10 months ago
`version: '3'
services:
  linkstack:
    container_name: linkstack
    image: linkstackorg/linkstack
    environment:
      - HTTP_SERVER_NAME="domain.me" 
      - HTTPS_SERVER_NAME="domain.me"
      - SERVER_ADMIN="admin@example.xyz"
      - TZ="Europe/Berlin"
      - PHP_MEMORY_LIMIT="512M"
      - UPLOAD_MAX_FILESIZE="8M"
    restart: always
    volumes:
      - /opt/containers/ls_data/httpdocs:/htdocs
      - /opt/containers/ls_data/ssl_apache:/etc/ssl/apache2
    networks:
      - traefik_web
networks:
  traefik_web:
   external: true`

this is my compose and it works, the only things is you need to fill the folder by yourself ;)

wildmarkos commented 10 months ago

do you know any service that can host and run this in free tier?

saschabrockel commented 10 months ago

I don't get why it has to be added manually. I mean every Docker service I know just works without an extra specified volume. And where do I get the files that belong to /htdocs?

For me, it was even worse. I had set up everything. I restarted Docker and realized everything was gone. Then I goddamn realized that there was nothing saved in the folder. I still don't know how it even used to work and saved my changes.

I guess that is maybe what happened to me: https://github.com/LinkStackOrg/linkstack-docker/discussions/2

lastsamurai26 commented 10 months ago

you need to unzip the download https://github.com/linkstackorg/linkstack/releases/latest/download/linkstack.zip into the /htdocs folder an in side of the docker you need to ues chwon -R apache:apache /htdocs

Unraid is maintaned by one of our community

saschabrockel commented 10 months ago

@lastsamurai26 thank you but where is the difference in the unRAID package?

lastsamurai26 commented 9 months ago

@lastsamurai26 thank you but where is the difference in the unRAID package?

There should be no difference, but the config for Unraid was not provided by us but by the community because we cannot test it.