mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 02:53:51 +00:00
Update compose; remove prisma schema
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
services:
|
||||
caddy:
|
||||
container_name: proxy
|
||||
image: caddy:latest
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
volumes:
|
||||
- ./.caddy/Caddyfile.dev:/etc/caddy/Caddyfile:rw
|
||||
networks:
|
||||
- web_proxy
|
||||
depends_on:
|
||||
- web
|
||||
|
||||
web:
|
||||
container_name: web
|
||||
image: web:dev
|
||||
volumes:
|
||||
- ./src/node_modules:/app/node_modules
|
||||
- ./src/sandbox.config.json:/app/sandbox.config.json
|
||||
- ./src/.stackblitzrc:/app/.stackblitzrc
|
||||
- ./src/astro.config.mjs:/app/astro.config.mjs
|
||||
- ./src/tailwind.config.cjs:/app/tailwind.config.cjs
|
||||
- ./src/tsconfig.json:/app/tsconfig.json
|
||||
- ./src/pnpm-lock.yaml:/app/pnpm-lock.yaml
|
||||
- ./src/package.json:/app/package.json
|
||||
- ./src/public:/app/public
|
||||
- ./src/src:/app/src
|
||||
networks:
|
||||
- web_proxy
|
||||
|
||||
networks:
|
||||
web_proxy:
|
||||
name: web_proxy
|
||||
external: true
|
||||
@@ -1,6 +1,6 @@
|
||||
services:
|
||||
caddy:
|
||||
container_name: proxy
|
||||
container_name: caddy
|
||||
image: caddy:latest
|
||||
ports:
|
||||
- 80:80
|
||||
@@ -10,11 +10,19 @@ services:
|
||||
networks:
|
||||
- proxy_network
|
||||
depends_on:
|
||||
- release.timmypidashev.dev
|
||||
- timmypidashev.dev
|
||||
|
||||
watchtower:
|
||||
container_name: updates
|
||||
image: containrrr/watchtower
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- $HOME/.docker/config.json:/config.json
|
||||
command: --interval 120 --cleanup --label-enable
|
||||
|
||||
release.timmypidashev.dev:
|
||||
timmypidashev.dev:
|
||||
container_name: timmypidashev
|
||||
image: ghcr.io/timmypidashev/timmypidashev.dev:release
|
||||
image: ghcr.io/timmypidashev/timmypidashev.dev:latest
|
||||
networks:
|
||||
- proxy_network
|
||||
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
// schemas/prisma.schema
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
}
|
||||
|
||||
datasource db {
|
||||
provider = "postgresql" // or "mysql" or "sqlite" depending on your database
|
||||
url = env("DATABASE_URL")
|
||||
}
|
||||
|
||||
model User {
|
||||
id Int @id @default(autoincrement())
|
||||
githubId Int @unique @map("github_id")
|
||||
email String @unique
|
||||
username String
|
||||
sessions Session[]
|
||||
|
||||
@@index([githubId])
|
||||
}
|
||||
|
||||
model Session {
|
||||
id String @id
|
||||
userId Int @map("user_id")
|
||||
expiresAt DateTime @map("expires_at")
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
}
|
||||
Reference in New Issue
Block a user