From 707ada69d0131d0b105c658c898541791fbcb041 Mon Sep 17 00:00:00 2001 From: asonix Date: Mon, 8 Jun 2020 09:56:11 -0500 Subject: [PATCH] non-root docker --- README.md | 6 ++++-- docker/prod/docker-compose.yml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a6e80d7..958e9bb 100644 --- a/README.md +++ b/README.md @@ -39,8 +39,10 @@ $ ./pict-rs -a 127.0.0.1:8080 -p data/ -w thumbnail identity Run the following commands: ``` # Create a folder for the files (anywhere works) -mkdir /pict-rs -cd /pict-rs +mkdir ./pict-rs +cd ./pict-rs +mkdir -p volumes/pictrs +sudo chown -R 991:991 volumes/pictrs wget https://git.asonix.dog/asonix/pict-rs/raw/branch/master/docker/prod/docker-compose.yml sudo docker-compose up -d ``` diff --git a/docker/prod/docker-compose.yml b/docker/prod/docker-compose.yml index efbbee0..2f6389a 100644 --- a/docker/prod/docker-compose.yml +++ b/docker/prod/docker-compose.yml @@ -3,7 +3,7 @@ version: '3.3' services: pictrs: image: asonix/pictrs:amd64-v0.1.0-r8 - user: root + user: 991:991 ports: - "127.0.0.1:8080:8080" restart: always