datatrash/docker-compose.yml.sample

34 lines
884 B
Plaintext

version: "3.3"
services:
datatrash:
build: .
container_name: datatrash
volumes:
- /var/datatrash/files:/opt/datatrash/files
environment:
DATABASE_HOST: db
DATABASE_USER: datatrash
DATABASE_PASS: database_password
# UPLOAD_MAX_BYTES: 1073741824 # 1 GiB
# BIND_ADDRESS: 0.0.0.0:8000
# FILES_DIR: /opt/datatrash/files
# AUTH_PASSWORD: auth_password
# NO_AUTH_MAX_TIME: 604800
# NO_AUTH_LARGE_FILE_MAX_TIME: 1800
# NO_AUTH_LARGE_FILE_SIZE: 10485760
ports:
- "80:8000"
restart: unless-stopped
depends_on:
- db
db:
image: postgres
container_name: datatrash-db
volumes:
- /var/datatrash/db:/var/lib/postgresql/data
environment:
POSTGRES_DB: datatrash
POSTGRES_USER: datatrash
POSTGRES_PASSWORD: database_password
restart: unless-stopped