Обновление конфигов и readme

This commit is contained in:
Michael Makarochkin 2025-03-14 03:16:53 +03:00
parent 4470cacd23
commit 3df4f7facb
5 changed files with 20 additions and 11 deletions

1
.example.env Normal file
View File

@ -0,0 +1 @@
DB_PASSWORD=password

3
.gitignore vendored
View File

@ -1 +1,2 @@
.idea .idea
.env

View File

@ -1,11 +1,18 @@
Библиотеки # pink_fox
- [веб framework](https://github.com/gin-gonic/gin) ## Развертывание
- [косольное приложение](https://github.com/spf13/cobra)
Скопировать `cp environment/example.config.yml environment/config.yml` и поправить пароль.
Скопировать `cp .example.env .env` и поправить пароль.
## Библиотеки
- [Веб framework](https://github.com/gin-gonic/gin)
- [Framework консольных приложений](https://github.com/spf13/cobra)
- [Шаблонизатор](https://github.com/CloudyKit/jet) - [Шаблонизатор](https://github.com/CloudyKit/jet)
## Планы
Планы
- модели - модели
- кастомизация страницы html ошибок - кастомизация страницы html ошибок
@ -21,4 +28,4 @@
- транзакции - транзакции
- timeout для базы данных - timeout для базы данных
- запуск задач по cron - запуск задач по cron
- заполнение базы данных тестовыми значениями консольной командой - заполнение базы данных тестовыми значениями консольной командой

View File

@ -22,7 +22,7 @@ services:
image: postgres:16 image: postgres:16
environment: environment:
- POSTGRES_USER=pink_fox - POSTGRES_USER=pink_fox
- POSTGRES_PASSWORD=pink_fox_pass - POSTGRES_PASSWORD=${DB_PASSWORD}
- TZ=Europe/Moscow - TZ=Europe/Moscow
- PGTZ=Europe/Moscow - PGTZ=Europe/Moscow
volumes: volumes:

View File

@ -3,11 +3,11 @@ port: 12001
# Соединение с postgres # Соединение с postgres
db: db:
host: localhost host: postgres
user: user user: pink_fox
password: password password: password
port: 5432 port: 5432
database: dbname database: pink_fox_db
debug: true debug: true