This commit is contained in:
grey-cat-1908 2024-08-18 05:28:57 +00:00
parent cc7c6aace1
commit 8bb07bd221
4 changed files with 17 additions and 8 deletions

7
.env.example Normal file
View file

@ -0,0 +1,7 @@
DATABASE_USER=admin
DATABASE_PASSWORD=password
DATABASE_NAME=formaptix
PORT=3000
SECRET=super_secret
ADMIN_PASSWORD=admin_password
DISABLE_ADMIN=false

View file

@ -1 +1,3 @@
ааа, нууу # Formaptix Server
readme is coming

View file

@ -1,12 +1,12 @@
version: "3" version: "3"
services: services:
inputly-server: formaptix-server:
build: "." build: "."
restart: "always" restart: "always"
environment: environment:
- DATABASE=postgresql+asyncpg://${DATABASE_USER}:${DATABASE_PASSWORD}@inputly-database:5432/${DATABASE_NAME} - DATABASE=postgresql+asyncpg://${DATABASE_USER}:${DATABASE_PASSWORD}@formaptix-database:5432/${DATABASE_NAME}
- SECRET=${SECRET} - SECRET=${SECRET}
- PORT=${PORT} - PORT=${PORT}
- ADMIN_PASSWORD=${ADMIN_PASSWORD} - ADMIN_PASSWORD=${ADMIN_PASSWORD}
@ -14,9 +14,9 @@ services:
ports: ports:
- ${PORT}:${PORT} - ${PORT}:${PORT}
depends_on: depends_on:
- inputly-database - formaptix-database
inputly-database: formaptix-database:
image: "postgres:bullseye" image: "postgres:bullseye"
restart: "always" restart: "always"
@ -25,7 +25,7 @@ services:
- POSTGRES_PASSWORD=${DATABASE_PASSWORD} - POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_DB=${DATABASE_NAME} - POSTGRES_DB=${DATABASE_NAME}
volumes: volumes:
- inputly-database:/var/lib/postgresql/data - formaptix-database:/var/lib/postgresql/data
volumes: volumes:
inputly-database: formaptix-database:

View file

@ -1,5 +1,5 @@
[tool.poetry] [tool.poetry]
name = "inputly-server" name = "formaptix-server"
version = "0.1.0" version = "0.1.0"
description = "Simple forms service backend" description = "Simple forms service backend"
authors = ["Viktor K. <tech@arbuz.icu>"] authors = ["Viktor K. <tech@arbuz.icu>"]