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:
|
|
|
|
- /data/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
|
|
|
|
DATABASE_PASS: jNmLZYr75as0W5TY7iSaIEVPSa2awaWAAgC5Zt8JsRAXbYrscLW4Dk7ZxHL1Bu4v
|
|
|
|
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:
|
2020-07-12 00:26:11 +00:00
|
|
|
image: postgres
|
2021-04-07 22:03:02 +00:00
|
|
|
container_name: datatrash-db
|
|
|
|
volumes:
|
|
|
|
- /data/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
|
|
|
|
POSTGRES_PASSWORD: jNmLZYr75as0W5TY7iSaIEVPSa2awaWAAgC5Zt8JsRAXbYrscLW4Dk7ZxHL1Bu4v
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- default
|
2020-07-12 00:26:11 +00:00
|
|
|
|
2021-04-07 22:03:02 +00:00
|
|
|
networks:
|
|
|
|
nginx:
|
|
|
|
external:
|
|
|
|
name: nginx_default
|