Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project logo disapears after every update #8366

Closed
3 tasks done
nordcart opened this issue Sep 28, 2021 · 7 comments
Closed
3 tasks done

Project logo disapears after every update #8366

nordcart opened this issue Sep 28, 2021 · 7 comments

Comments

@nordcart
Copy link

Preflight Checklist

Describe the Bug

Everytime updating via CMD (docker-compose pull), logo must be uploaded again

image

To Reproduce

Update Directus to latest version via docker-compose pull

What version of Directus are you using?

v9.0.0-rc.95

What version of Node.js are you using?

Dont know

What database are you using?

Postgres 12

What browser are you using?

Chrome

What operating system are you using?

Windows

How are you deploying Directus?

Docker

@joselcvarela
Copy link
Member

Hello @nordcart,
This only happens when you do docker-compose pull?
I don't know if that's the case, but it seems you have not mounted a volume for uploads.
Can you share your docker-compose?

@nordcart
Copy link
Author

nordcart commented Sep 28, 2021

version: '3'

services:
  database:
    container_name: database
    image: postgres:12
    volumes:
      - ./data/database:/var/lib/postgresql/data
    networks:
      - directus
    environment:
      POSTGRES_USER: '*******'
      POSTGRES_PASSWORD: '*****'
      POSTGRES_DB: 'directus'

  cache:
    container_name: cache
    image: redis:6
    networks:
      - directus

  directus:
    container_name: directus
    image: directus/directus:9.0.0-rc.95
    ports:
      - 8055:8055
 
    networks:
      - directus
    depends_on:
      - cache
      - database
    environment:
      KEY: '***************'
      SECRET: '***************'

      DB_CLIENT: 'pg'
      DB_HOST: 'database'
      DB_PORT: '5432'
      DB_DATABASE: 'directus'
      DB_USER: '********'
      DB_PASSWORD: '***********'

      CACHE_ENABLED: 'true'
      CACHE_STORE: 'redis'
      CACHE_REDIS: 'redis://cache:6379'

      ADMIN_EMAIL: '************'
      ADMIN_PASSWORD: '************'

networks:
  directus:

@azrikahar
Copy link
Contributor

azrikahar commented Sep 28, 2021

@nordcart You'll need to persist the /directus/uploads directory for directus container similar to how you persist your database. Here's how it's mentioned in the docs:

image

Link: https://docs.directus.io/guides/installation/docker/#docker-compose

@nordcart
Copy link
Author

@nordcart You'll need to persist the /directus/uploads directory for directus container similar to how you persist your database. Here's how it's mentioned in the docs:

image

Link: https://docs.directus.io/guides/installation/docker/#docker-compose

I can´t just add
volumes:

  • ./uploads:/directus/uploads

and then run docker-compose up in cmd? It just results in error for that line.

@azrikahar
Copy link
Contributor

Can you share the specific error shown? that'll be very helpful as we're basically in the dark here 😅

@nordcart
Copy link
Author

volumes:
./uploads:/directus/uploads

compose

@azrikahar
Copy link
Contributor

and what does line 30, column 13 entails? I believe your docker-compose.yml is not formatted properly.

in case you really did put this (I can't be sure are you pasting the wrong formatting here on GitHub or that's exactly what you're using):

volumes:
./uploads:/directus/uploads

then please do follow the docs I linked to you and do the following (the dash is important, as well as the indentation):

volumes:
    - ./uploads/directus/uploads

You can also refer how you are currently writing the volumes section for your database service.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants