A Afilmory deployment solution based on Docker that allows you to quickly set up a modern photo gallery website.
- Docker
- Docker Compose (optional)
config.json
{
"name": "Your Photo Gallery", // Website name
"title": "Your Photo Gallery", // Page title
"description": "Capturing beautiful moments in life", // Website description
"url": "https://", // Personal URL
"accentColor": "#fb7185", // Theme color
"author": {
"name": "Your Name",
"url": "https://your-website.com",
"avatar": "https://your-avatar-url.com/avatar.png"
},
"social": {
"twitter": "@yourusername"
},
"extra": {
"accessRepo": true
}
}builder.config.ts
import { defineBuilderConfig } from '@afilmory/builder'
export default defineBuilderConfig(() => ({
repo: {
// Use remote repository as manifest and thumbnail cache
enable: false,
url: 'https://github.com/username/gallery-public',
},
storage: {
// Storage configuration
provider: 's3',
bucket: 'your-photos-bucket',
region: 'us-east-1',
prefix: 'photos/',
customDomain: 'cdn.yourdomain.com',
},
})).env
- S3 storage configuration:
S3_ACCESS_KEY_ID=your_access_key_id
S3_SECRET_ACCESS_KEY=your_secret_access_key- PG (optional):
PG_CONNECTION_STRING=- GIT (optional):
GIT_TOKEN=docker build -t afilmory .docker run -p 3000:3000 afilmoryOr use Docker Compose:
services:
afilmory:
build: .
ports:
- "3000:3000"
environment:
- NODE_ENV=production
volumes:
- ./config.json:/app/config.json
- ./builder.config.ts:/app/builder.config.ts
- ./.env:/app/.envMIT License © 2025