2020-07-12 00:26:11 +00:00
|
|
|
version: "3.3"
|
|
|
|
services:
|
|
|
|
datatrash:
|
|
|
|
build: .
|
2021-04-07 22:03:02 +00:00
|
|
|
container_name: datatrash
|
|
|
|
volumes:
|
2021-10-15 22:25:55 +00:00
|
|
|
- /var/datatrash/files:/opt/datatrash/files
|
2020-07-12 00:26:11 +00:00
|
|
|
environment:
|
2021-04-07 22:03:02 +00:00
|
|
|
DATABASE_HOST: db
|
|
|
|
DATABASE_USER: datatrash
|
2021-10-15 22:25:55 +00:00
|
|
|
DATABASE_PASS: database_password
|
2022-04-10 21:45:32 +00:00
|
|
|
# UPLOAD_MAX_BYTES: 1073741824 # 1 GiB
|
2022-04-10 22:01:19 +00:00
|
|
|
# BIND_ADDRESS: 0.0.0.0:8000
|
|
|
|
# FILES_DIR: /opt/datatrash/files
|
2022-04-10 21:45:32 +00:00
|
|
|
# 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"
|
2021-04-07 22:03:02 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
db:
|
2020-07-12 00:26:11 +00:00
|
|
|
image: postgres
|
2021-04-07 22:03:02 +00:00
|
|
|
container_name: datatrash-db
|
|
|
|
volumes:
|
2021-10-15 22:25:55 +00:00
|
|
|
- /var/datatrash/db:/var/lib/postgresql/data
|
2020-07-12 00:26:11 +00:00
|
|
|
environment:
|
2021-04-07 22:03:02 +00:00
|
|
|
POSTGRES_DB: datatrash
|
|
|
|
POSTGRES_USER: datatrash
|
2021-10-15 22:25:55 +00:00
|
|
|
POSTGRES_PASSWORD: database_password
|
2021-04-07 22:03:02 +00:00
|
|
|
restart: unless-stopped
|