Skip to content

Local setup using no env file #641

Closed
@ServerGeek82

Description

Followed setup located here:
https://www.linkace.org/docs/v1/setup/setup-with-docker/advanced-configuration/

Followed steps in this section on that page:
"Using Docker environment variables instead of the .env file"
Step1: Removed volume mount of file
Step2: Added env variables to compose file
Step3:
Step3a: Done
Step3b: Done
Step3c: Done
Step4: Using MariaDB

Initial launch successful, however

URL: http://myLocalIP:8187/setup/requirements

PHP version >= 7.4.0 : Checkmark
PHP Extension: BCMath : Checkmark
PHP Extension: Ctype : Checkmark
PHP Extension: JSON : Checkmark
PHP Extension: Mbstring : Checkmark
PHP Extension: OpenSSL : Checkmark
PHP Extension: PDO : Checkmark
PHP Extension: Tokenizer : Checkmark
PHP Extension: XML : Checkmark
.env file is present and writable : SadPanda
/storage and /storage/logs directories are writable : Checkmark

Enter the boring stuff:

services:
  linkace-db:
    image: mariadb:10.7
    container_name: linkace-db
    command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
    environment:
      PGID: 1000
      PUID: 1000
      TZ: "Earth"
      UMASK_SET: 002
      MYSQL_ROOT_PASSWORD: ChangeThisToASecurePassword!
      MYSQL_USER: linkace
      MYSQL_PASSWORD: ChangeThisToASecurePassword!
      MYSQL_DATABASE: linkace
    labels:
      - "traefik.enable=false"
    restart: unless-stopped
    volumes:
      - /home/docker/nonVolumes/linkace-db:/var/lib/mysql
    networks:
      - mxprod01io

  linkace-app:
    image: linkace/linkace:simple
    container_name: linkace-app
    depends_on:
      - linkace-db
    environment:
      PGID: 1000
      PUID: 1000
      TZ: "Earth"
      UMASK_SET: 002
      APP_KEY: base64:UpNqL+sGLU6ckAzczF3QcFsrQzv/jHFypRp8fGnNX6s=
      ## Configuration of the database connection
      ## Attention: Those settings are configured during the web setup, please do not modify them now.
      # Set the database driver (mysql, pgsql, sqlsrv, sqlite)
      DB_CONNECTION: mysql
      DB_HOST: linkace-db
      DB_PORT: 3306
      DB_DATABASE: linkace
      DB_USERNAME: linkace
      DB_PASSWORD: ChangeThisToASecurePassword!
    labels:
     - "traefik.enable=false"
    restart: unless-stopped
    ports:
      - "0.0.0.0:8187:80"
    volumes:
      - /home/docker/nonVolumes/linkace-app:/app/storage/logs"
    networks:
      - mxprod01io

networks:
  mxprod01io:
    external: true

Is there a env variable to let the app know that we are choosing this option and skip check for file?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    SupportRequests for Help regarding setup and usage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions