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

Default permissions for /data fail #13

Closed
debuglevel opened this issue Apr 24, 2021 · 1 comment
Closed

Default permissions for /data fail #13

debuglevel opened this issue Apr 24, 2021 · 1 comment

Comments

@debuglevel
Copy link
Owner

## 172.16.0.240/29 address-geocoding
  address-geocoding:
    enabled: true
    services:
      address-geocoding-rest:
        image: registry.gitlab.com/debuglevel/address-geocoding:0-0-10
        environment:
         - DATASOURCES_DEFAULT_URL=jdbc:h2:file:/data/database/address-geocoding
        volumes:
          - address-geocoding-database:/data/database
        networks:
          address-geocoding-net:
            ipv4_address: 172.16.0.242
    volumes:
      address-geocoding-database:
    networks:
      address-geocoding-net:
        driver: bridge
        ipam:
          driver: default
          config:
            - subnet: 172.16.0.240/29

fails with

Caused by: java.io.FileNotFoundException: /data/database/address-geocoding.mv.db (Permission denied)

because the volume is created with rights for root.
See moby/moby#2259

Maybe creating /data in Dockerfile with appropriate USER rights set would help

@debuglevel
Copy link
Owner Author

should now work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant