datatrash/docker-compose.yml

40 lines
987 B
YAML
Raw Normal View History

version: "3.3"
services:
datatrash:
build: .
container_name: datatrash
volumes:
- /data/datatrash/files:/opt/datatrash/files
environment:
DATABASE_HOST: db
DATABASE_USER: datatrash
DATABASE_PASS: jNmLZYr75as0W5TY7iSaIEVPSa2awaWAAgC5Zt8JsRAXbYrscLW4Dk7ZxHL1Bu4v
UPLOAD_MAX_BYTES: 1073741824
AUTH_PASSWORD: peter123
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:
- /data/datatrash/db:/var/lib/postgresql/data
environment:
POSTGRES_DB: datatrash
POSTGRES_USER: datatrash
POSTGRES_PASSWORD: jNmLZYr75as0W5TY7iSaIEVPSa2awaWAAgC5Zt8JsRAXbYrscLW4Dk7ZxHL1Bu4v
restart: unless-stopped
networks:
- default
networks:
nginx:
external:
name: nginx_default