Обновление конфигов и readme
This commit is contained in:
parent
4470cacd23
commit
3df4f7facb
1
.example.env
Normal file
1
.example.env
Normal file
@ -0,0 +1 @@
|
|||||||
|
DB_PASSWORD=password
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
.idea
|
.idea
|
||||||
|
.env
|
||||||
17
README.md
17
README.md
@ -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 ошибок
|
||||||
|
|||||||
@ -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:
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user