Browse Source

docker-compose: remove ineffective/breaking (depending on compose version) option `tmpfs.mode`

https://github.com/docker/compose/blob/1.27.4/compose/config/config_schema_compose_spec.json#L413

https://github.com/fphammerle/docker-onion-service/issues/36
Fabian Peter Hammerle 1 year ago
parent
commit
a022c7878d
2 changed files with 6 additions and 4 deletions
  1. 4 0
      CHANGELOG.md
  2. 2 4
      docker-compose.yml

+ 4 - 0
CHANGELOG.md

@@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
   - `org.opencontainers.image.source` (repo url)
   - `org.opencontainers.image.title`
 
+### Fixed
+- docker-compose: remove ineffective/breaking (depending on compose version)
+  option `tmpfs.mode`
+
 ## [3.0.0] - 2020-10-10
 ### Added
 - option `NON_ANONYMOUS_SINGLE_HOP_MODE=1` to enable non-anonymous single hop mode

+ 2 - 4
docker-compose.yml

@@ -17,10 +17,8 @@ services:
       target: /onion-service
     - type: tmpfs
       target: /tmp # torrc
-      tmpfs:
-        # nosuid,nodev,noexec added by default
-        mode: '1777'
-        size: 4k
+      # nosuid,nodev,noexec added by default
+      tmpfs: {size: 4k}
     read_only: yes
     environment:
       VIRTUAL_PORT: 80