New on Strapi. I just followed https://strapi.io/documentation/developer-docs/latest/installation/docker.html and all was done okay. But http://localhost:1337/ do not load, and throw This page isn’t working localhost didn’t send any data.
Anything I miss?
System Information
-
Strapi Version: Docker installation
-
Operating System: Window
-
Database: MariaDB
-
Node Version: v14.15.5
-
NPM Version: 6.14.11
-
Yarn Version: none
Hey @carlitorweb,
I followed the steps:
- Creating an
docker-compose.yaml
with:
Summary
version: '3'
services:
strapi:
image: strapi/strapi
environment:
DATABASE_CLIENT: mysql
DATABASE_HOST: mariadb
DATABASE_PORT: 3306
DATABASE_NAME: strapi
DATABASE_USERNAME: strapi
DATABASE_PASSWORD: strapi
DATABASE_SSL: 'false'
volumes:
- ./app:/srv/app
ports:
- '1337:1337'
depends_on:
- mariadb
mariadb:
image: mariadb
volumes:
- ./data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: strapi
MYSQL_DATABASE: strapi
MYSQL_USER: strapi
MYSQL_PASSWORD: strapi
- Run
docker-compose pull
- Run
docker-compose up
(without -d, detached mode)
What I noticed is that the installation and initial build where taking a bit long, so I guess your app just wasn’t started yet. Maybe wait a couple of second and start you app not detached so you can see the logs. Don’t forget to remove the created folders and containers, to start with a fresh project.