> docker-compose build --no-cache Building 2fauth Step 1/14 : FROM composer:2.0 ---> bbc8bb456803 Step 2/14 : WORKDIR /2fauth ---> Running in 4fff40fc159b Removing intermediate container 4fff40fc159b ---> c20e4f423e49 Step 3/14 : RUN chown 1000:1000 /2fauth ---> Running in cb570c402a7b Removing intermediate container cb570c402a7b ---> 98c501156c76 Step 4/14 : USER 1000:1000 ---> Running in a7261b614a9b Removing intermediate container a7261b614a9b ---> 3d72b3c9a399 Step 5/14 : ENV APP_NAME=2FAuth APP_ENV=local APP_DEBUG=false SITE_OWNER=mail@example.com APP_KEY=SomeRandomStringOf32CharsExactly APP_URL=0.0.0.0 APP_PORT=80 APP_TRIES=10 DB_CONNECTION=sqlite DB_DATABASE="/2fauth/database/database.sqlite" IS_DEMO_APP=false LOG_CHANNEL=daily APP_LOG_LEVEL=notice CACHE_DRIVER=file SESSION_DRIVER=file MAIL_DRIVER=log MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_FROM=changeme@example.com MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null MAIL_FROM_NAME=null MAIL_FROM_ADDRESS=null BROADCAST_DRIVER=log QUEUE_DRIVER=sync SESSION_LIFETIME=12 REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379 PUSHER_APP_ID= PUSHER_APP_KEY= PUSHER_APP_SECRET= PUSHER_APP_CLUSTER=mt1 MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" MIX_ENV=local ---> Running in 13b6bed75bcd Removing intermediate container 13b6bed75bcd ---> 154e6ab2cb0b Step 6/14 : RUN git clone -q https://github.com/Bubka/2FAuth /2fauth ---> Running in 557f613b46be Removing intermediate container 557f613b46be ---> 82910f9c3a92 Step 7/14 : COPY ./startup.sh . ---> 88d6ae150f11 Step 8/14 : RUN mkdir -p /2fauth/database/ && touch /2fauth/database/database.sqlite ---> Running in a70a9d1d16c7 Removing intermediate container a70a9d1d16c7 ---> 51e2fd2f518f Step 9/14 : RUN composer -q install ---> Running in c07c7c28c810 Removing intermediate container c07c7c28c810 ---> a867752d8752 Step 10/14 : RUN php artisan migrate:refresh ---> Running in bc5baa47538b Migration table not found. Migration table created successfully. Migrating: 2014_10_12_000000_create_users_table Migrated: 2014_10_12_000000_create_users_table (0.02 seconds) Migrating: 2014_10_12_100000_create_password_resets_table Migrated: 2014_10_12_100000_create_password_resets_table (0.02 seconds) Migrating: 2016_06_01_000001_create_oauth_auth_codes_table Migrated: 2016_06_01_000001_create_oauth_auth_codes_table (0.02 seconds) Migrating: 2016_06_01_000002_create_oauth_access_tokens_table Migrated: 2016_06_01_000002_create_oauth_access_tokens_table (0.01 seconds) Migrating: 2016_06_01_000003_create_oauth_refresh_tokens_table Migrated: 2016_06_01_000003_create_oauth_refresh_tokens_table (0.02 seconds) Migrating: 2016_06_01_000004_create_oauth_clients_table Migrated: 2016_06_01_000004_create_oauth_clients_table (0.02 seconds) Migrating: 2016_06_01_000005_create_oauth_personal_access_clients_table Migrated: 2016_06_01_000005_create_oauth_personal_access_clients_table (0.01 seconds) Migrating: 2017_03_03_100000_create_options_table Migrated: 2017_03_03_100000_create_options_table (0.01 seconds) Migrating: 2019_05_16_162730_create_twofaccounts_table Migrated: 2019_05_16_162730_create_twofaccounts_table (0.01 seconds) Migrating: 2020_03_25_095517_add_order_column_to_twofaccounts_table Migrated: 2020_03_25_095517_add_order_column_to_twofaccounts_table (0.01 seconds) Migrating: 2020_10_05_210557_add_last_seen_to_users_table Migrated: 2020_10_05_210557_add_last_seen_to_users_table (0.01 seconds) Migrating: 2020_10_11_202302_add_provider_column_to_oauth_clients_table Migrated: 2020_10_11_202302_add_provider_column_to_oauth_clients_table (0 seconds) Migrating: 2020_10_20_210129_create_groups_table Migrated: 2020_10_20_210129_create_groups_table (0.01 seconds) Migrating: 2020_10_20_211115_add_group_id_column_to_twofaccounts_table Migrated: 2020_10_20_211115_add_group_id_column_to_twofaccounts_table (0.01 seconds) Migrating: 2020_12_04_073604_alter_encrypted_columns_to_text Migrated: 2020_12_04_073604_alter_encrypted_columns_to_text (0 seconds) Removing intermediate container bc5baa47538b ---> e4cba14c297d Step 11/14 : RUN php artisan passport:install ---> Running in 542c754701d5 Encryption keys generated successfully. Personal access client created successfully. Client ID: 1 Client secret: m8GpQ1PUukjLdsm6JhlneCo186L5WOeQeCUku4ni Password grant client created successfully. Client ID: 2 Client secret: VwOv8WThXDlW7CjZ957qdAkhxeU8QNgot63GUMwi Removing intermediate container 542c754701d5 ---> 9b9237623e36 Step 12/14 : RUN php artisan storage:link ---> Running in 275200c521dd The [/2fauth/public/storage] link has been connected to [/2fauth/storage/app/public]. The links have been created. Removing intermediate container 275200c521dd ---> ca36c2ce6450 Step 13/14 : RUN php artisan config:cache ---> Running in a465a6ca127c Configuration cache cleared! Configuration cached successfully! Removing intermediate container a465a6ca127c ---> 5a68fd465bd0 Step 14/14 : ENTRYPOINT ["/2fauth/startup.sh"] ---> Running in 06471f37b7bf Removing intermediate container 06471f37b7bf ---> 77bc6358f79a Successfully built 77bc6358f79a Successfully tagged tommoulard/2fauth:latest > docker-compose up Attaching to 2fauth-docker_2fauth-redis_1, 2fauth-docker_2fauth-postgres_1, 2fauth-docker_2fauth_1 2fauth-postgres_1 | chmod: /var/run/postgresql: Operation not permitted 2fauth-redis_1 | 1:C 03 Mar 2021 18:34:12.754 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 2fauth-redis_1 | 1:C 03 Mar 2021 18:34:12.754 # Redis version=6.0.10, bits=64, commit=00000000, modified=0, pid=1, just started 2fauth-redis_1 | 1:C 03 Mar 2021 18:34:12.754 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf 2fauth-postgres_1 | 2fauth-postgres_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization 2fauth-postgres_1 | 2fauth-postgres_1 | LOG: database system was shut down at 2021-03-03 18:34:07 UTC 2fauth-redis_1 | 1:M 03 Mar 2021 18:34:12.756 * Running mode=standalone, port=6379. 2fauth-redis_1 | 1:M 03 Mar 2021 18:34:12.756 # Server initialized 2fauth-redis_1 | 1:M 03 Mar 2021 18:34:12.756 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. 2fauth-postgres_1 | LOG: MultiXact member wraparound protections are now enabled 2fauth-redis_1 | 1:M 03 Mar 2021 18:34:12.756 * Loading RDB produced by version 6.0.10 2fauth-redis_1 | 1:M 03 Mar 2021 18:34:12.756 * RDB age 5 seconds 2fauth-redis_1 | 1:M 03 Mar 2021 18:34:12.756 * RDB memory usage when created 0.77 Mb 2fauth-postgres_1 | LOG: database system is ready to accept connections 2fauth-redis_1 | 1:M 03 Mar 2021 18:34:12.756 * DB loaded from disk: 0.000 seconds 2fauth-redis_1 | 1:M 03 Mar 2021 18:34:12.756 * Ready to accept connections 2fauth-postgres_1 | LOG: autovacuum launcher started 2fauth_1 | 2fauth_1 | Illuminate\Database\QueryException 2fauth_1 | 2fauth_1 | Database (/2fauth/database/database.sqlite) does not exist. (SQL: PRAGMA foreign_keys = ON;) 2fauth_1 | 2fauth_1 | at vendor/laravel/framework/src/Illuminate/Database/Connection.php:671 2fauth_1 | 667| // If an exception occurs when attempting to run a query, we'll format the error 2fauth_1 | 668| // message to include the bindings with SQL, which will make this exception a 2fauth_1 | 669| // lot more helpful to the developer instead of just the database's errors. 2fauth_1 | 670| catch (Exception $e) { 2fauth_1 | > 671| throw new QueryException( 2fauth_1 | 672| $query, $this->prepareBindings($bindings), $e 2fauth_1 | 673| ); 2fauth_1 | 674| } 2fauth_1 | 675| 2fauth_1 | 2fauth_1 | 1 [internal]:0 2fauth_1 | Illuminate\Foundation\Application::Illuminate\Foundation\{closure}(Object(App\Providers\AppServiceProvider)) 2fauth_1 | 2fauth_1 | +18 vendor frames  2fauth_1 | 20 app/Providers/AppServiceProvider.php:30 2fauth_1 | Illuminate\Support\Facades\Facade::__callStatic("defaultStringLength") 2fauth-docker_2fauth_1 exited with code 1 Gracefully stopping... (press Ctrl+C again to force)