Browse Source

links: use standard volume, and remove default network

Guilhem Saurel 6 years ago
parent
commit
80f367ea96
2 changed files with 2 additions and 6 deletions
  1. 1 1
      links/README.md
  2. 1 5
      links/docker-compose.yml

+ 1 - 1
links/README.md

@@ -5,9 +5,9 @@ https://www.shaarli.fr/
 ## Deploy
 ```
 docker-compose up -d
+sudo chown 100 ${CHATONS_ROOT_DIR:-/srv/chatons}/links/data
 ```
 ## First login
 
 Go to your web browser and define the login and password.
 You are done !
-

+ 1 - 5
links/docker-compose.yml

@@ -9,13 +9,9 @@ services:
     image: shaarli/shaarli:latest
     restart: unless-stopped
     volumes:
-      - data:/var/www/shaarli/data
+      - ${CHATONS_ROOT_DIR:-/srv/chatons}/links/data:/var/www/shaarli/data
     labels:
       traefik.enable: "true"
       traefik.frontend.rule: "Host: links.${CHATONS_DOMAIN:-localhost}, www.links.${CHATONS_DOMAIN:-localhost}"
     networks:
       - web
-      - default
-
-volumes:
-  data: