Describe the bug
Dockerfiles are not working because ⛔️ You can only create a Strapi app in an empty directory. Make sure /srv/app is empty.
I think it is not a problem with the Dockerfile, so I am posting here. None of the examples work here: https://strapi.io/documentation/v3.x/installation/docker.html
Steps to reproduce the behavior
Run docker-compose up --build on any example in Strapi docker repository inside empty directory
See error message ⛔️ You can only create a Strapi app in an empty directory. Make sure /srv/app is empty.
Expected behavior
Previously this worked perfectly and all files inside of ./app were mounted properly. Nothing special needed to be done.
Screenshots
N/A
Code snippets
N/A
Docker compose file:
version: '3'
services:
strapi:
image: strapi/strapi
environment:
DATABASE_CLIENT: postgres
DATABASE_NAME: strapi
DATABASE_HOST: postgres
DATABASE_PORT: 5432
DATABASE_USERNAME: strapi
DATABASE_PASSWORD: strapi
volumes:
- ./app:/srv/app
ports:
- '1337:1337'
depends_on:
- postgres
postgres:
image: postgres
environment:
POSTGRES_DB: strapi
POSTGRES_USER: strapi
POSTGRES_PASSWORD: strapi
volumes:
- ./data:/var/lib/postgresql/data
System
Strapi version: 3.x
Database: mongodb, postgres both tested
Operating system: ubuntu 22.04
Additional context
Tried all Dockerfiles in the repository but all failed to launch Strapi with this error.
Describe the bug
Dockerfiles are not working because ⛔️ You can only create a Strapi app in an empty directory. Make sure /srv/app is empty.
I think it is not a problem with the Dockerfile, so I am posting here. None of the examples work here: https://strapi.io/documentation/v3.x/installation/docker.html
Steps to reproduce the behavior
Run docker-compose up --build on any example in Strapi docker repository inside empty directory
See error message ⛔️ You can only create a Strapi app in an empty directory. Make sure /srv/app is empty.
Expected behavior
Previously this worked perfectly and all files inside of ./app were mounted properly. Nothing special needed to be done.
Screenshots
N/A
Code snippets
N/A
Docker compose file:
version: '3'
services:
strapi:
image: strapi/strapi
environment:
DATABASE_CLIENT: postgres
DATABASE_NAME: strapi
DATABASE_HOST: postgres
DATABASE_PORT: 5432
DATABASE_USERNAME: strapi
DATABASE_PASSWORD: strapi
volumes:
- ./app:/srv/app
ports:
- '1337:1337'
depends_on:
- postgres
postgres:
image: postgres
environment:
POSTGRES_DB: strapi
POSTGRES_USER: strapi
POSTGRES_PASSWORD: strapi
volumes:
- ./data:/var/lib/postgresql/data
System
Strapi version: 3.x
Database: mongodb, postgres both tested
Operating system: ubuntu 22.04
Additional context
Tried all Dockerfiles in the repository but all failed to launch Strapi with this error.