40 lines
896 B
Plaintext
40 lines
896 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
|
|
AUTH_PASSWORD: auth_password
|
|
NO_AUTH_MAX_TIME: 604800
|
|
NO_AUTH_LARGE_FILE_MAX_TIME: 1800
|
|
NO_AUTH_LARGE_FILE_SIZE: 10485760
|
|
networks:
|
|
- default
|
|
- nginx
|
|
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
|
|
networks:
|
|
- default
|
|
|
|
networks:
|
|
nginx:
|
|
external:
|
|
name: nginx_default
|