Git Product home page Git Product logo

Comments (3)

NathanVaughn avatar NathanVaughn commented on July 22, 2024

If you set all the following environment variables:

  • DB_HOST
  • DB_PASS
  • WT_NAME
  • WT_USER
  • WT_PASS
  • WT_EMAIL

then an account will be created with the username defined by WT_USER and the password defined by WT_PASS. Otherwise, you'll be sent to the setup wizard page like so:
image (using this Docker compose):

version: "3"

services:
  app:
    depends_on:
      - db
    environment:
      PRETTY_URLS: "1"
      LANG: "en-US"
      BASE_URL: "http://localhost:80/"
      DB_TYPE: "mysql"
      DB_HOST: "db"
      DB_PORT: "3306"
      DB_USER: "webtrees"
      DB_PASS: "badpassword"
      DB_NAME: "webtrees"
      DB_PREFIX: "wt_"
    image: ghcr.io/nathanvaughn/webtrees:latest
    ports:
      - 80:80
      - 443:443
    restart: unless-stopped
    volumes:
      - app_data:/var/www/webtrees/data/
      - app_media:/var/www/webtrees/media/

  db:
    environment:
      MYSQL_DATABASE: "webtrees"
      MYSQL_USER: "webtrees"
      MYSQL_ROOT_PASSWORD: "badpassword"
      MYSQL_PASSWORD: "badpassword"
    image: mariadb:latest
    restart: unless-stopped
    volumes:
      - db_data:/var/lib/mysql

volumes:
  db_data:
    driver: local
  app_data:
    driver: local
  app_media:
    driver: local

This is only in effect the first time you launch the container, and there is no default account. If you haven't filled out the environment variables and you're not getting the setup page, then most likely you already have the file data/config.ini.php in your container, or data already exists in your database and you'll need to clear this out and try again.

from webtrees-docker.

NathanVaughn avatar NathanVaughn commented on July 22, 2024

Also, if you post some of your Docker output log, that would helpful. Example:

app_1  | [NV_INIT] Setting folder permissions for uploads
app_1  | [NV_INIT] Attempting to automate setup wizard
app_1  | [NV_INIT] Config file NOT found
app_1  | [NV_INIT] Not all variables required for setup wizard present
app_1  | [NV_INIT] Attempting to set pretty URLs status
app_1  | [NV_INIT] Config file NOT found, please setup webtrees
app_1  | [NV_INIT] Attempting to set HTTPS status
app_1  | [NV_INIT] Removing HTTPS support
app_1  | Site webtrees-ssl already disabled
app_1  | Site webtrees-redir already disabled
app_1  | Enabling site webtrees.
app_1  | To activate the new configuration, you need to run:
app_1  |   service apache2 reload
app_1  | [NV_INIT] Starting Apache

from webtrees-docker.

NathanVaughn avatar NathanVaughn commented on July 22, 2024

I'm closing this with 10 days of inactivity.

from webtrees-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.