Skip to content
Snippets Groups Projects
Commit 8e3387ad authored by derneuere's avatar derneuere
Browse files

Replace individual paths with data

parent 52d8bb94
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ services: ...@@ -24,7 +24,7 @@ services:
container_name: __proxy_name__ container_name: __proxy_name__
volumes: volumes:
- ${myPhotos}:/data - ${myPhotos}:/data
- ${proMedia}:/protected_media - ${data}/protected_media:/protected_media
- ./proxy/nginx.conf:/etc/nginx/nginx.conf:ro - ./proxy/nginx.conf:/etc/nginx/nginx.conf:ro
__frontend_name__: __frontend_name__:
...@@ -52,10 +52,10 @@ services: ...@@ -52,10 +52,10 @@ services:
container_name: __backend_name__ container_name: __backend_name__
volumes: volumes:
- ${myPhotos}:/data - ${myPhotos}:/data
- ${proMedia}:/protected_media - ${data}/protected_media:/protected_media
- ${logLocation}:/logs - ${data}/logs:/logs
- ${data}/cache:/root/.cache
- ${codedir}/librephotos:/code - ${codedir}/librephotos:/code
- ${cachedir}:/root/.cache
- ./vscode/server-extensions:/root/.vscode-server/extensions - ./vscode/server-extensions:/root/.vscode-server/extensions
- ./vscode/server-insiders-extensions:/root/.vscode-server-insiders/extensions - ./vscode/server-insiders-extensions:/root/.vscode-server-insiders/extensions
- ./vscode/settings.json:/code/.vscode/settings.json - ./vscode/settings.json:/code/.vscode/settings.json
......
...@@ -24,7 +24,7 @@ services: ...@@ -24,7 +24,7 @@ services:
container_name: proxy container_name: proxy
volumes: volumes:
- ${myPhotos}:/data - ${myPhotos}:/data
- ${proMedia}:/protected_media - ${data}/protected_media:/protected_media
- ./proxy/nginx.conf:/etc/nginx/nginx.conf:ro - ./proxy/nginx.conf:/etc/nginx/nginx.conf:ro
frontend: frontend:
...@@ -52,10 +52,10 @@ services: ...@@ -52,10 +52,10 @@ services:
container_name: backend container_name: backend
volumes: volumes:
- ${myPhotos}:/data - ${myPhotos}:/data
- ${proMedia}:/protected_media - ${data}/protected_media:/protected_media
- ${logLocation}:/logs - ${data}/logs:/logs
- ${codedir}/librephotos:/code - ${codedir}/librephotos:/code
- ${cachedir}:/root/.cache - ${data}/cache:/root/.cache
- ./vscode/server-extensions:/root/.vscode-server/extensions - ./vscode/server-extensions:/root/.vscode-server/extensions
- ./vscode/server-insiders-extensions:/root/.vscode-server-insiders/extensions - ./vscode/server-insiders-extensions:/root/.vscode-server-insiders/extensions
- ./vscode/settings.json:/code/.vscode/settings.json - ./vscode/settings.json:/code/.vscode/settings.json
......
...@@ -15,7 +15,7 @@ services: ...@@ -15,7 +15,7 @@ services:
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ${myPhotos}:/data - ${myPhotos}:/data
- ${proMedia}:/protected_media - ${data}/protected_media:/protected_media
- ./proxy/nginx.conf:/etc/nginx/nginx.conf:ro - ./proxy/nginx.conf:/etc/nginx/nginx.conf:ro
ports: ports:
- ${httpPort}:80 - ${httpPort}:80
...@@ -32,7 +32,7 @@ services: ...@@ -32,7 +32,7 @@ services:
- POSTGRES_PASSWORD=${dbPass} - POSTGRES_PASSWORD=${dbPass}
- POSTGRES_DB=${dbName} - POSTGRES_DB=${dbName}
volumes: volumes:
- ${dbLocation}:/var/lib/postgresql/data - ${data}/db:/var/lib/postgresql/data
command: postgres -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c random_page_cost=1.0 command: postgres -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c random_page_cost=1.0
__frontend_name__: __frontend_name__:
...@@ -48,9 +48,9 @@ services: ...@@ -48,9 +48,9 @@ services:
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ${myPhotos}:/data - ${myPhotos}:/data
- ${proMedia}:/protected_media - ${data}/protected_media:/protected_media
- ${logLocation}:/logs - ${data}/logs:/logs
- ${cachedir}:/root/.cache - ${data}/cache:/root/.cache
environment: environment:
- SECRET_KEY=${shhhhKey} - SECRET_KEY=${shhhhKey}
......
...@@ -15,7 +15,7 @@ services: ...@@ -15,7 +15,7 @@ services:
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ${myPhotos}:/data - ${myPhotos}:/data
- ${proMedia}:/protected_media - ${data}/protected_media:/protected_media
ports: ports:
- ${httpPort}:80 - ${httpPort}:80
depends_on: depends_on:
...@@ -31,7 +31,7 @@ services: ...@@ -31,7 +31,7 @@ services:
- POSTGRES_PASSWORD=${dbPass} - POSTGRES_PASSWORD=${dbPass}
- POSTGRES_DB=${dbName} - POSTGRES_DB=${dbName}
volumes: volumes:
- ${dbLocation}:/var/lib/postgresql/data - ${data}/db:/var/lib/postgresql/data
command: postgres -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c random_page_cost=1.0 command: postgres -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c random_page_cost=1.0
frontend: frontend:
...@@ -47,9 +47,9 @@ services: ...@@ -47,9 +47,9 @@ services:
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ${myPhotos}:/data - ${myPhotos}:/data
- ${proMedia}:/protected_media - ${data}/protected_media:/protected_media
- ${logLocation}:/logs - ${data}/logs:/logs
- ${cachedir}:/root/.cache - ${data}/cache:/root/.cache
environment: environment:
- SECRET_KEY=${shhhhKey} - SECRET_KEY=${shhhhKey}
......
...@@ -7,33 +7,28 @@ ...@@ -7,33 +7,28 @@
# Location of your photos. # Location of your photos.
myPhotos=./librephotos/pictures myPhotos=./librephotos/pictures
# The location where you would like to store the log files. The full path must exist as it will not be created for you. # Internal data of LibrePhotos
logLocation=./librephotos/logs/ data=./librephotos/data
# Protected media directory. This is where we store some files like the thumbnails of your images.
proMedia=./librephotos/media
# Where shall we store the cache files.
cachedir=./librephotos/cache
# Where shall we store the database.
dbLocation=./librephotos/data
# Secret Key. Get one here https://rb.gy/emgmwo (Shortened random.org link) # Secret Key. Get one here https://rb.gy/emgmwo (Shortened random.org link)
shhhhKey=D2VymuMn2gAhx4tmAawd shhhhKey=D2VymuMn2gAhx4tmAawd
#What port should Libre Photos be accessed at (Default 3000)
httpPort=3000
# ------------------------------------------------------------------------------------------------ # ------------------------------------------------------------------------------------------------
# Wow, we are at the optional now. Pretty easy so far. You do not have to change any of the below. # Wow, we are at the optional now. Pretty easy so far. You do not have to change any of the below.
# Database host. Only change this if you want to use your own existing Postgres server. If using your own server, you can remove the 'db' container from docker-compose.yml. If you're changing the name of the DB's container name (DB_CONT_NAME further down), you need to set this variable to match that name too. #What port should Libre Photos be accessed at (Default 3000)
dbHost=db httpPort=3000
# What branch should we install the latest weekly build or the development branch (dev) # What branch should we install the latest weekly build or the development branch (dev)
tag=latest tag=latest
# Number of workers, which take care of the request to the api. This setting can dramatically affect the ram usage.
# A positive integer generally in the 2-4 x $(NUM_CORES) range.
# You’ll want to vary this a bit to find the best for your particular workload.
# Each worker needs 800MB of RAM. Change at your own will. Default is 2.
gunniWorkers=2
# You can set the database name. Did you know Libre Photos was forked from OwnPhotos? # You can set the database name. Did you know Libre Photos was forked from OwnPhotos?
dbName=librephotos dbName=librephotos
...@@ -43,16 +38,13 @@ dbUser=docker ...@@ -43,16 +38,13 @@ dbUser=docker
# The password used by the database. # The password used by the database.
dbPass=AaAa1234 dbPass=AaAa1234
# Number of workers, which take care of the request to the api. This setting can dramatically affect the ram usage.
# A positive integer generally in the 2-4 x $(NUM_CORES) range.
# You’ll want to vary this a bit to find the best for your particular workload.
# Each worker needs 800MB of RAM. Change at your own will. Default is 2.
gunniWorkers=2
# Default minimum rating to interpret as favorited. This default value is used when creating a new user. # Default minimum rating to interpret as favorited. This default value is used when creating a new user.
# Users can change this in their settings (Dashboards > Library). # Users can change this in their settings (Dashboards > Library).
DEFAULT_FAVORITE_MIN_RATING=4 DEFAULT_FAVORITE_MIN_RATING=4
# Database host. Only change this if you want to use your own existing Postgres server. If using your own server, you can remove the 'db' container from docker-compose.yml. If you're changing the name of the DB's container name (DB_CONT_NAME further down), you need to set this variable to match that name too.
dbHost=db
# Set the names of the docker containers to your own entries. Or don't, I'm not your dad. # Set the names of the docker containers to your own entries. Or don't, I'm not your dad.
# Changing these will require you to `make rename` to rename the services, and start the system with your chosen `docker-compose up -d` invocation again. # Changing these will require you to `make rename` to rename the services, and start the system with your chosen `docker-compose up -d` invocation again.
# Note that changing the DB_CONT_NAME will also need you to set the `dbHost` variable to the same value. # Note that changing the DB_CONT_NAME will also need you to set the `dbHost` variable to the same value.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment