Ahwxorg / Binternet

A custom Pinterest frontend, made in PHP.
GNU General Public License v3.0
133 stars 13 forks source link

docker-compose issues #38

Closed vlnst closed 3 months ago

vlnst commented 3 months ago

git clone https://github.com/Ahwxorg/Binternet/ && cd Binternet

docker compose up -d

docker compose logs

binternet  | [21-Jul-2024 09:50:31] ERROR: failed to open error_log (/var/log/php83/error.log): No such file or directory (2)
binternet  | [21-Jul-2024 09:50:31] ERROR: failed to post process the configuration
binternet  | [21-Jul-2024 09:50:31] ERROR: FPM initialization failed

I think we can use this as a base for a secure and reliable Docker image for Binternet

vlnst commented 3 months ago

And I think it would be great if there were previous version of Binternet images available.

I have to clone the repo, checkout to a working commit, build the image if something breaks instead of just pulling older image.

vlnst commented 3 months ago

docker run -p 8070:8080 ghcr.io/ahwxorg/binternet:latest works fine

vlnst commented 3 months ago

NVM, it was my issue, I forgot to change the port from 80 to 8080 in my Ansible configuration... nevertheless the docker-compose.yml doesn't seem to work. It works fine without those parts (commented ones):

services:
  binternet:
    container_name: binternet
    image: ghcr.io/ahwxorg/binternet:latest
    # read_only: true
    cap_drop:
      - ALL
    security_opt:
      - no-new-privileges:true
    ports:
     - '8070:8080'
    # tmpfs:
    #   - /var/log:noexec,nosuid,nodev
    #   - /var/lib:noexec,nosuid,nodev
Ahwxorg commented 3 months ago

Issue has been fixed in commit 0d1e0638dd118a0af374182f6874901fa54c7c11.

vlnst commented 3 months ago

Thanks!