From a2549f344788f96c5660b0f5ba0aa28dc61f96ec Mon Sep 17 00:00:00 2001 From: Farhaan Bukhsh Date: Mar 02 2018 15:03:14 +0000 Subject: Improve docker-compose and documentation This commits makes the current docker-compose.yml to work with the latest version of docker-compose, documentation on creating the initial directories are added to the docker-compose section. Signed-off-by: Farhaan Bukhsh --- diff --git a/README.rst b/README.rst index 538c198..b7767fe 100644 --- a/README.rst +++ b/README.rst @@ -57,6 +57,10 @@ host machine. Docker Compose ^^^^^^^^^^^^^^ +Create the folder that will receive the projects, forks, docs, requests and +tickets' git repo:: + + mkdir -p lcl/{repos,remotes,attachments,releases} A docker compose environment is available to run pagure. First use the following command to build the containers. :: diff --git a/dev/docker-compose.yml b/dev/docker-compose.yml index 44c3a0f..aab44ef 100644 --- a/dev/docker-compose.yml +++ b/dev/docker-compose.yml @@ -13,14 +13,8 @@ services: ports: - "5000:5000" volumes: - - type: volume - source: ../lcl/repos - target: /repos - read_only: false - - type: volume - source: ../lcl/attachments - target: /attachments - read_only: false + - ../lcl/repos:/repos + - ../lcl/attachments:/attachments - ..:/code:z worker: build: @@ -31,14 +25,8 @@ services: - postgresql image: pagure-worker:latest volumes: - - type: volume - source: ../lcl/repos - target: /repos - read_only: false - - type: volume - source: ../lcl/attachments - target: /attachments - read_only: true + - ../lcl/repos:/repos + - ../lcl/attachments:/attachments - ..:/code:z environment: - PYTHONPATH=.