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