You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
1.9 KiB
77 lines
1.9 KiB
# DO NOT EDIT |
|
# The .env file has everything you need to edit. |
|
# Run options: |
|
# 1. Use prebuilt images (preferred method): |
|
# run cmd: docker-compose up -d |
|
# 2. Build images on your own machine: |
|
# build cmd: COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose build |
|
# run cmd: docker-compose up -d |
|
|
|
version: '3.8' |
|
services: |
|
proxy: |
|
image: reallibrephotos/librephotos-proxy:${tag} |
|
restart: always |
|
volumes: |
|
- ${myPhotos}:/data |
|
- ${proMedia}:/protected_media |
|
ports: |
|
- ${httpPort}:80 |
|
depends_on: |
|
- backend |
|
- frontend |
|
|
|
db: |
|
image: postgres:13 |
|
restart: always |
|
environment: |
|
- POSTGRES_USER=${dbUser} |
|
- POSTGRES_PASSWORD=${dbPass} |
|
- POSTGRES_DB=${dbName} |
|
volumes: |
|
- ${dbLocation}:/var/lib/postgresql/data |
|
command: postgres -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c random_page_cost=1.0 |
|
|
|
frontend: |
|
image: reallibrephotos/librephotos-frontend:${tag} |
|
restart: always |
|
depends_on: |
|
- backend |
|
|
|
backend: |
|
image: reallibrephotos/librephotos:${tag} |
|
restart: always |
|
volumes: |
|
- ${myPhotos}:/data |
|
- ${proMedia}:/protected_media |
|
- ${logLocation}:/logs |
|
- ${cachedir}:/root/.cache |
|
|
|
environment: |
|
- SECRET_KEY=${shhhhKey} |
|
- BACKEND_HOST=backend |
|
- ADMIN_EMAIL=${adminEmail} |
|
- ADMIN_USERNAME=${userName} |
|
- ADMIN_PASSWORD=${userPass} |
|
- DB_BACKEND=postgresql |
|
- DB_NAME=${dbName} |
|
- DB_USER=${dbUser} |
|
- DB_PASS=${dbPass} |
|
- DB_HOST=db |
|
- DB_PORT=5432 |
|
- REDIS_HOST=redis |
|
- REDIS_PORT=6379 |
|
- MAPBOX_API_KEY=${mapApiKey} |
|
- TIME_ZONE=${timeZone} |
|
- WEB_CONCURRENCY=${gunniWorkers} |
|
- SKIP_PATTERNS=${skipPatterns} |
|
- DEBUG=0 |
|
- HEAVYWEIGHT_PROCESS=${HEAVYWEIGHT_PROCESS} |
|
|
|
# Wait for Postgres |
|
depends_on: |
|
- db |
|
|
|
redis: |
|
image: redis:6 |
|
restart: always
|
|
|