provide sample docker-compose.yml

This commit is contained in:
neri 2021-10-16 00:25:55 +02:00
parent 5a933641a4
commit e568919641
1 changed files with 4 additions and 4 deletions

View File

@ -4,11 +4,11 @@ services:
build: .
container_name: datatrash
volumes:
- /data/datatrash/files:/opt/datatrash/files
- /var/datatrash/files:/opt/datatrash/files
environment:
DATABASE_HOST: db
DATABASE_USER: datatrash
DATABASE_PASS: jNmLZYr75as0W5TY7iSaIEVPSa2awaWAAgC5Zt8JsRAXbYrscLW4Dk7ZxHL1Bu4v
DATABASE_PASS: database_password
UPLOAD_MAX_BYTES: 1073741824
AUTH_PASSWORD: auth_password
NO_AUTH_MAX_TIME: 604800
@ -24,11 +24,11 @@ services:
image: postgres
container_name: datatrash-db
volumes:
- /data/datatrash/db:/var/lib/postgresql/data
- /var/datatrash/db:/var/lib/postgresql/data
environment:
POSTGRES_DB: datatrash
POSTGRES_USER: datatrash
POSTGRES_PASSWORD: jNmLZYr75as0W5TY7iSaIEVPSa2awaWAAgC5Zt8JsRAXbYrscLW4Dk7ZxHL1Bu4v
POSTGRES_PASSWORD: database_password
restart: unless-stopped
networks:
- default