datatrash/docker-compose.yml.sample

34 lines
884 B
Plaintext
Raw Permalink Normal View History

version: "3.3"
services:
datatrash:
build: .
container_name: datatrash
volumes:
2021-10-15 22:25:55 +00:00
- /var/datatrash/files:/opt/datatrash/files
environment:
DATABASE_HOST: db
DATABASE_USER: datatrash
2021-10-15 22:25:55 +00:00
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:
2021-10-15 22:25:55 +00:00
- /var/datatrash/db:/var/lib/postgresql/data
environment:
POSTGRES_DB: datatrash
POSTGRES_USER: datatrash
2021-10-15 22:25:55 +00:00
POSTGRES_PASSWORD: database_password
restart: unless-stopped