System Information
- Strapi Version:
- Operating System:
- Database:
- Node Version:
- NPM Version:
- Yarn Version:
I’m using docker strapi nextjs. I have an issue where I want the image URLs to point to the frontend part (nextjs), not to the admin part. In one project, using postgres, I managed to set up shared volumes so that the images were loaded into the public/uploads folder. But now I’m trying to use sqlite and nothing works.
version: '1.0'
services:
frontend:
build:
context: ../frontend
dockerfile: ../dev-config/Dockerfile.frontend
ports:
- "3000:3000"
volumes:
- ../frontend:/usr/app
- ../uploads:/usr/app/public/uploads
environment:
API_TOKEN: ${API_TOKEN}
API_URL: ${API_URL}
networks:
- strapi
cms:
build:
context: ../cms
dockerfile: ../dev-config/Dockerfile.cms
ports:
- "1337:1337"
volumes:
- ./config:/opt/app/config
- ./src:/opt/app/src
- ./package.json:/opt/package.json
- ./.env:/opt/app/.env
- ../uploads:/usr/app/public/uploads
networks:
- strapi
networks:
strapi: