GravCMS Docker Volumes

107 Views Asked by At

I have this docker-compose file:

---
services:
  grav:
    image: linuxserver/grav:latest
    container_name: test1
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - ..\grav\user\accounts:/var/www/grav/user/accounts
      - ..\grav\user\blueprints:/var/www/grav/user/blueprints
      - ..\config:/var/www/grav/user/config
      - ..\contents\data:/var/www/grav/user/data
      - ..\grav\user\images:/var/www/grav/user/images
      - ..\grav\user\languages:/var/www/grav/user/languages
      - ..\contents\posts:/var/www/grav/user/pages
      - ..\grav\user\plugins:/var/www/grav/user/plugins
      - ..\vendors\themes:/var/www/grav/user/themes
    ports:
      - 666:80
    restart: unless-stopped

the container starts well, but I do not see any content on my host folders. Where is the problem?

(ps: I am on windows, so the backslash is reversed on the config)

1

There are 1 best solutions below

0
Hung Tran On

The paths in the container are not correct, Grav is stored in /app/www/public/ as shown in the Dockerfile.