Changed default port for production to 2342

This commit is contained in:
Michael Mayer 2018-10-08 21:25:14 +02:00
parent 0fcd158b7e
commit 2f971acf00
2 changed files with 9 additions and 10 deletions

View file

@ -44,32 +44,31 @@ This is the official way to test our development snapshot. We just started worki
Before you start, make sure you got [Docker](https://store.docker.com/search?type=edition&offering=community) installed on your system. It is available for Mac, Linux and Windows. Before you start, make sure you got [Docker](https://store.docker.com/search?type=edition&offering=community) installed on your system. It is available for Mac, Linux and Windows.
Developers can skip this and move on to the [Developer Guide](https://github.com/photoprism/photoprism/wiki/Developer-Guide) in our [Wiki](https://github.com/photoprism/photoprism/wiki). Developers can skip this and move on to the [Developer Guide](https://github.com/photoprism/photoprism/wiki/Developer-Guide) in our [Wiki](https://github.com/photoprism/photoprism/wiki).
**Step 1:** Download [docker-compose.yml](https://raw.githubusercontent.com/photoprism/photoprism/master/configs/docker-compose.yml) to a directory of your choice and set the default photo path `~/Photos` to where you want to store your photos: **Step 1:** Download [docker-compose.yml](https://raw.githubusercontent.com/photoprism/photoprism/master/configs/docker-compose.yml) (right click and *Save Link As...*) to a directory of your choice.
```yaml By default, a folder named `Photos` in your home directory will be used to store all images. You don't need to create it.
volumes:
- ~/Photos:/Photos
```
PhotoPrism will create the following sub-directories in your photo path: `Import`, `Export` and `Originals`. Copy existing photos to `Import`, not directly to `Originals` as they need to be renamed and indexed in order to remove duplicates. PhotoPrism will also create the following sub-directories in your photo path: `Import`, `Export` and `Originals`. Copy existing photos to `Import`, not directly to `Originals` as they need to be renamed and indexed in order to remove duplicates.
Files that can not be imported - like videos - will stay in the `Import` directory, nothing gets lost. Files that can not be imported - like videos - will stay in the `Import` directory, nothing gets lost.
If you prefer to use different directory names, you can change them in `docker-compose.yml`. See inline comments for instructions.
**Step 2:** Start PhotoPrism using `docker-compose` in the same directory: **Step 2:** Start PhotoPrism using `docker-compose` in the same directory:
```bash ```bash
docker-compose up -d docker-compose up -d
``` ```
The Web frontend is now available at http://localhost/. The port can be changed in `docker-compose.yml` if needed. Remember to run `docker-compose restart` every time you change the config. The Web frontend is now available at http://localhost:2342/. The port can be changed in `docker-compose.yml` if needed. Remember to run `docker-compose restart` every time you change the config.
**Step 3:** Open a terminal to import your photos: **Step 3:** Open a terminal to import photos:
```bash ```bash
docker-compose exec photoprism bash docker-compose exec photoprism bash
photoprism import photoprism import
``` ```
The full documentation is available at https://docs.photoprism.org/en/latest/. You should now be able to see your photos. The full documentation is available at https://docs.photoprism.org/en/latest/.
Contribute Contribute
---------- ----------

View file

@ -8,7 +8,7 @@ services:
image: photoprism/photoprism # use pre-built image from docker hub: https://hub.docker.com/r/photoprism/photoprism/ image: photoprism/photoprism # use pre-built image from docker hub: https://hub.docker.com/r/photoprism/photoprism/
restart: always restart: always
ports: ports:
- 80:80 # left side is your local port (change if port 80 is already used) - 2342:80 # left side is your local port (change if port 2342 is already used or you want to use port 80)
volumes: volumes:
- ~/Photos:/Photos # change ~/Photos to whatever directory you want to use on your local computer - ~/Photos:/Photos # change ~/Photos to whatever directory you want to use on your local computer
- photoprism-thumbnails:/var/photoprism/thumbnails # keep this (thumbnail cache) - photoprism-thumbnails:/var/photoprism/thumbnails # keep this (thumbnail cache)