mirror of
https://codeberg.org/MarkusThielker/finances.git
synced 2025-04-12 05:08:43 +00:00
Release v1.0.0 (#17)
This commit is contained in:
commit
48384b7687
5 changed files with 32 additions and 13 deletions
|
@ -2,19 +2,21 @@ services:
|
||||||
|
|
||||||
app-migrations:
|
app-migrations:
|
||||||
container_name: next_finances_migrations
|
container_name: next_finances_migrations
|
||||||
image: markusthielker/next-finances:1.0.0
|
image: markusthielker/next-finances:latest
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
command: [ "npx", "prisma", "migrate", "deploy" ]
|
command: npx prisma migrate deploy
|
||||||
|
labels:
|
||||||
|
- "com.centurylinklabs.watchtower.enable=true"
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
app:
|
app:
|
||||||
container_name: next_finances_app
|
container_name: next_finances_app
|
||||||
image: markusthielker/next-finances:1.0.0
|
image: markusthielker/next-finances:latest
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -27,19 +29,20 @@ services:
|
||||||
- "traefik.http.routers.xyz-next-finances.entrypoints=web, websecure"
|
- "traefik.http.routers.xyz-next-finances.entrypoints=web, websecure"
|
||||||
- "traefik.http.routers.xyz-next-finances.tls=true"
|
- "traefik.http.routers.xyz-next-finances.tls=true"
|
||||||
- "traefik.http.routers.xyz-next-finances.tls.certresolver=lets-encrypt"
|
- "traefik.http.routers.xyz-next-finances.tls.certresolver=lets-encrypt"
|
||||||
|
- "com.centurylinklabs.watchtower.enable=true"
|
||||||
networks:
|
networks:
|
||||||
- web
|
- web
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
app-studio:
|
app-studio:
|
||||||
container_name: next_finances_studio
|
container_name: next_finances_studio
|
||||||
image: markusthielker/next-finances:1.0.0
|
image: markusthielker/next-finances:latest
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
depends_on:
|
depends_on:
|
||||||
app-migrations:
|
app-migrations:
|
||||||
condition: service_completed_successfully
|
condition: service_completed_successfully
|
||||||
command: "npx prisma studio"
|
command: npx prisma studio
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
|
@ -48,6 +51,7 @@ services:
|
||||||
- "traefik.http.services.xyz-next-finances-studio.loadbalancer.server.port=5555"
|
- "traefik.http.services.xyz-next-finances-studio.loadbalancer.server.port=5555"
|
||||||
- "traefik.http.routers.xyz-next-finances-studio.tls=true"
|
- "traefik.http.routers.xyz-next-finances-studio.tls=true"
|
||||||
- "traefik.http.routers.xyz-next-finances-studio.tls.certresolver=lets-encrypt"
|
- "traefik.http.routers.xyz-next-finances-studio.tls.certresolver=lets-encrypt"
|
||||||
|
- "com.centurylinklabs.watchtower.enable=true"
|
||||||
networks:
|
networks:
|
||||||
- web
|
- web
|
||||||
- internal
|
- internal
|
||||||
|
@ -62,14 +66,19 @@ services:
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: prisma
|
POSTGRES_USER: ${DB_USER}
|
||||||
POSTGRES_PASSWORD: prisma
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||||
POSTGRES_DB: finances
|
POSTGRES_DB: finances
|
||||||
volumes:
|
volumes:
|
||||||
- ./postgres-data:/var/lib/postgresql/data
|
- postgres-data:/var/lib/postgresql/data
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
postgres-data:
|
||||||
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
web:
|
web:
|
||||||
external: true
|
external: true
|
||||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "next-finances",
|
"name": "next-finances",
|
||||||
"version": "0.1.0",
|
"version": "1.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "next-finances",
|
"name": "next-finances",
|
||||||
"version": "0.1.0",
|
"version": "1.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hookform/resolvers": "^3.3.4",
|
"@hookform/resolvers": "^3.3.4",
|
||||||
"@lucia-auth/adapter-prisma": "^4.0.0",
|
"@lucia-auth/adapter-prisma": "^4.0.0",
|
||||||
|
|
12
package.json
12
package.json
|
@ -1,6 +1,16 @@
|
||||||
{
|
{
|
||||||
"name": "next-finances",
|
"name": "next-finances",
|
||||||
"version": "0.1.0",
|
"description": "A finances application to keep track of my personal spendings",
|
||||||
|
"homepage": "https://github.com/MarkusThielker/next-finances",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"license": "MIT",
|
||||||
|
"author": {
|
||||||
|
"name": "Markus Thielker"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/MarkusThielker/next-finances.git"
|
||||||
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
|
|
|
@ -5,7 +5,7 @@ import React from 'react';
|
||||||
import { useRouter } from 'next/navigation';
|
import { useRouter } from 'next/navigation';
|
||||||
import { toast } from 'sonner';
|
import { toast } from 'sonner';
|
||||||
import { sonnerContent } from '@/components/ui/sonner';
|
import { sonnerContent } from '@/components/ui/sonner';
|
||||||
import { ActionResponse } from '@/lib/types/ActionResponse';
|
import { ActionResponse } from '@/lib/types/actionResponse';
|
||||||
|
|
||||||
export default function GenerateSampleDataForm({onSubmit}: { onSubmit: () => Promise<ActionResponse> }) {
|
export default function GenerateSampleDataForm({onSubmit}: { onSubmit: () => Promise<ActionResponse> }) {
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type { Category, Entity } from '@prisma/client';
|
||||||
import { EntityType } from '@prisma/client';
|
import { EntityType } from '@prisma/client';
|
||||||
import { getUser } from '@/auth';
|
import { getUser } from '@/auth';
|
||||||
import { URL_SIGN_IN } from '@/lib/constants';
|
import { URL_SIGN_IN } from '@/lib/constants';
|
||||||
import { ActionResponse } from '@/lib/types/ActionResponse';
|
import { ActionResponse } from '@/lib/types/actionResponse';
|
||||||
|
|
||||||
export default async function generateSampleData(): Promise<ActionResponse> {
|
export default async function generateSampleData(): Promise<ActionResponse> {
|
||||||
'use server';
|
'use server';
|
||||||
|
|
Loading…
Add table
Reference in a new issue