From 2423a0394d335461a13c6bf7a913072779f8cad9 Mon Sep 17 00:00:00 2001 From: viktorstrate Date: Thu, 30 Apr 2020 15:57:08 +0200 Subject: [PATCH] Update docker compose example to use image ...instead of building the image. Also update the docker instructions in the readme. --- README.md | 13 +++---------- docker-compose.example.yml | 3 +-- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 0627fb24..c12a3b00 100644 --- a/README.md +++ b/README.md @@ -63,16 +63,9 @@ All of the photo galleries can do a lot of what I need, but no single one can do > This section describes how to get PhotoView up and running on your server with Docker. > Make sure you have Docker and docker-compose installed and running on your server -1. Clone this repository by executing - -```bash -$ git clone https://github.com/viktorstrate/photoview -$ cd photoview -``` - -2. Duplicate `docker-compose.example.yml` and name the new file `docker-compose.yml` -3. Edit `docker-compose.yml`, find the comments starting with `Change This:`, and change the values, to properly match your setup. If you are just testing locally, you don't have to change anything. -4. Start the server by running the following command, inside the `photoview` directory +1. Make a new `docker-compose.yml` file on your computer, and copy the content of [docker-compose.example.yml](/docker-compose.example.yml) to the new file. +2. Edit `docker-compose.yml`, find the comments starting with `Change This:`, and change the values, to properly match your setup. If you are just testing locally, you don't have to change anything. +3. Start the server by running the following command ```bash $ docker-compose up -d diff --git a/docker-compose.example.yml b/docker-compose.example.yml index cb6d5e21..a015fdc7 100644 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -13,8 +13,7 @@ services: - db_data:/var/lib/mysql photoview: - build: "." - + image: viktorstrate/photoview:latest restart: always ports: - "8000:80"