mirror of https://github.com/TZGyn/shortener
Docker compose
parent
ae8b26e87d
commit
cd836f2755
@ -0,0 +1,15 @@
|
||||
---
|
||||
version: '1.0'
|
||||
services:
|
||||
shortener_frontend:
|
||||
container_name: shortener_frontend
|
||||
build:
|
||||
context: ./react-frontend
|
||||
dockerfile: Dockerfile
|
||||
ports: [3003:4173]
|
||||
shortener_backend:
|
||||
container_name: shortener_backend
|
||||
build:
|
||||
context: ./elysia
|
||||
dockerfile: Dockerfile
|
||||
ports: [3004:3000]
|
||||
@ -0,0 +1,10 @@
|
||||
node_modules
|
||||
npm-debug.log
|
||||
Dockerfile*
|
||||
docker-compose*
|
||||
.dockerignore
|
||||
.git
|
||||
.gitignore
|
||||
README.md
|
||||
LICENSE
|
||||
.vscode
|
||||
@ -0,0 +1,3 @@
|
||||
host=0.0.0.0
|
||||
user=postgres
|
||||
password=password
|
||||
@ -0,0 +1,13 @@
|
||||
FROM docker.io/oven/bun
|
||||
|
||||
RUN mkdir /shortener-backend
|
||||
WORKDIR /shortener-backend
|
||||
|
||||
COPY ./package.json ./
|
||||
COPY ./bun.lockb ./
|
||||
|
||||
RUN bun install
|
||||
|
||||
COPY . .
|
||||
|
||||
ENTRYPOINT [ "bun", "run", "./src/index.ts" ]
|
||||
@ -0,0 +1,10 @@
|
||||
node_modules
|
||||
npm-debug.log
|
||||
Dockerfile*
|
||||
docker-compose*
|
||||
.dockerignore
|
||||
.git
|
||||
.gitignore
|
||||
README.md
|
||||
LICENSE
|
||||
.vscode
|
||||
@ -0,0 +1,15 @@
|
||||
FROM docker.io/oven/bun
|
||||
|
||||
RUN mkdir /shortener-frontend
|
||||
WORKDIR /shortener-frontend
|
||||
|
||||
COPY ./package.json ./
|
||||
COPY ./bun.lockb ./
|
||||
|
||||
RUN bun install
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN bun run build
|
||||
|
||||
ENTRYPOINT [ "bun", "run", "preview", "--host" ]
|
||||
Loading…
Reference in New Issue