mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
feat(global) container and project structure update
This commit is contained in:
11 files changed
+29
-37
No files matched your search
@@ -1,11 +1,18 @@
|
||||
# General
|
||||
GIT_WORK_DIR=/tmp/nocturne/blog_posts_git
|
||||
# postgres settings
|
||||
DB_HOST=localhost
|
||||
DB_PORT=5432
|
||||
POSTGRES_PASSWORD=
|
||||
POSTGRES_USER=
|
||||
POSTGRES_DB=nocturne
|
||||
|
||||
# backend settings
|
||||
GIT_WORK_DIR=../blog_posts_git
|
||||
BLOG_ENDPOINT=https://github.com/Lumither/blog-posts.git
|
||||
LOG_ROOT_DIR=/var/log/nocturne
|
||||
|
||||
# Backend
|
||||
BACKEND_URL=https://lumither.com/api
|
||||
BACKEND_PORT=3001
|
||||
|
||||
## Database related
|
||||
DB_CONNECTION=postgresql://localhost:5432/nocturne
|
||||
# frontend settings
|
||||
API_LOCAL_URL=http://localhost:3001
|
||||
API_REMOTE_URL=https://lumither.com/api
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# confidential
|
||||
.env.*
|
||||
/container/*/.env
|
||||
|
||||
# idea related
|
||||
.idea
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
# General
|
||||
GIT_WORK_DIR=/tmp/nocturne/blog_posts_git
|
||||
BLOG_ENDPOINT=https://github.com/Lumither/blog-posts.git
|
||||
LOG_ROOT_DIR=/var/log/nocturne
|
||||
|
||||
# Backend
|
||||
BACKEND_URL=https://lumither.com/api
|
||||
BACKEND_PORT=3001
|
||||
|
||||
## Database related
|
||||
DB_CONNECTION=postgresql://localhost:5432/nocturne
|
||||
@@ -1,14 +1,13 @@
|
||||
# docker/dev.Dockerfile
|
||||
FROM oven/bun:latest
|
||||
FROM node:latest
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json ./
|
||||
COPY bun.lockb ./
|
||||
|
||||
RUN bun install
|
||||
RUN npm install
|
||||
|
||||
ENV NEXT_TELEMETRY_DISABLED 1
|
||||
|
||||
CMD bun run dev
|
||||
CMD npm run dev
|
||||
|
||||
+6
-4
@@ -7,11 +7,13 @@ services:
|
||||
ports:
|
||||
- 3000:3000
|
||||
volumes:
|
||||
- ./frontend:/app:ro
|
||||
- ./frontend:/app
|
||||
- /app/node_modules
|
||||
- /app/.next
|
||||
env_file:
|
||||
- .env.dev
|
||||
- ./container/dev/.env
|
||||
dns:
|
||||
- 1.1.1.1
|
||||
|
||||
|
||||
backend:
|
||||
@@ -24,11 +26,11 @@ services:
|
||||
volumes:
|
||||
- ./blog_posts_git:/app/blog_posts_git:ro
|
||||
env_file:
|
||||
- .env.dev
|
||||
- ./container/dev/.env
|
||||
|
||||
postgres:
|
||||
image: postgres:16.3
|
||||
ports:
|
||||
- 5432:5432
|
||||
env_file:
|
||||
- .env.dev
|
||||
- ./container/dev/.env
|
||||
@@ -1,11 +0,0 @@
|
||||
# General
|
||||
GIT_WORK_DIR=/tmp/nocturne/blog_posts_git
|
||||
BLOG_ENDPOINT=https://github.com/Lumither/blog-posts.git
|
||||
LOG_ROOT_DIR=/var/log/nocturne
|
||||
|
||||
# Backend
|
||||
BACKEND_URL=https://lumither.com/api
|
||||
BACKEND_PORT=3001
|
||||
|
||||
## Database related
|
||||
DB_CONNECTION=postgresql://localhost:5432/nocturne
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -4,12 +4,17 @@
|
||||
/bin/bash ./flush_env.sh
|
||||
|
||||
# start frontend
|
||||
(
|
||||
cd frontend || exit
|
||||
bun i
|
||||
bun next build
|
||||
screen -S nocturne_frontend -d -m bun start
|
||||
cd ..
|
||||
) &
|
||||
|
||||
# start backend
|
||||
(
|
||||
cd backend || exit
|
||||
screen -S nocturne_backend -d -m cargo r -r
|
||||
cd ..
|
||||
) & wait
|
||||
Reference in new issue
Block a user