diff --git a/docker-compose.yml b/docker-compose.yml index 125e666..814a4f9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ services: db: - image: library/postgres:15 + image: library/postgres:17-alpine restart: ${DOCKER_RESTART} volumes: - postgres:/var/lib/postgresql/data:z @@ -15,7 +15,7 @@ services: logging: driver: "json-file" options: - max-file: "5" # number of files or file count + max-file: "1" # number of files or file count max-size: "25m" # file size web_php: @@ -33,7 +33,7 @@ services: logging: driver: "json-file" options: - max-file: "5" # number of files or file count + max-file: "1" # number of files or file count max-size: "25m" # file size caddy: @@ -54,7 +54,7 @@ services: logging: driver: "json-file" options: - max-file: "5" # number of files or file count + max-file: "1" # number of files or file count max-size: "25m" # file size volumes: diff --git a/docs/postgres.md b/docs/postgres.md index 79af312..e0432cd 100644 --- a/docs/postgres.md +++ b/docs/postgres.md @@ -8,14 +8,14 @@ Dump database to file DB_DATABASE and DB_USERNAME variable take from .env file - docker compose exec db pg_dump --no-owner --dbname=DB_DATABASE --username=DB_USERNAME > pgdump.sql + docker compose exec db pg_dump --no-owner --dbname=fakturomat --username=fakturomat > pg_dump_$(date +'%F').sql upgrade postgres version in `docker-compose.yml` file docker compose down docker volume rm fakturomat_postgres docker compose up --detach - docker compose exec -T db psql --dbname=DB_DATABASE --username=USERNAME < pgdump.sql + docker compose exec -T db psql --dbname=fakturomat --username=fakturomat < pgdump.sql Download pgdump.sql from server @@ -25,4 +25,4 @@ https://www.postgresql.org/docs/current/app-pgdump.html ### connect to db - docker compose exec postgres-db psql --password --dbname=$DB_DATABASE --username=$DB_USERNAME \ No newline at end of file + docker compose exec db psql --password --dbname=fakturomat --username=fakturomat \ No newline at end of file