-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REALLY Hacky workaround to get BitHunt containerised
- Loading branch information
Showing
9 changed files
with
973 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
node_modules | ||
bun.lockb | ||
.dockerignore | ||
.git | ||
README.md | ||
docker-compose.yaml | ||
Dockerfile | ||
docs | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Step 1: Build stage | ||
FROM node:18-alpine AS build | ||
WORKDIR /app | ||
COPY package.json package-lock.json ./ | ||
RUN npm ci --force | ||
COPY . . | ||
|
||
# Step 2: Production stage | ||
FROM node:18-alpine | ||
WORKDIR /app | ||
COPY --from=build /app . | ||
RUN npm run build | ||
COPY start.sh start.sh | ||
RUN chmod +x start.sh | ||
CMD ["./start.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
services: | ||
app: | ||
build: . | ||
ports: | ||
- '3000:3000' | ||
environment: | ||
DATABASE_URL: postgresql://prisma:prisma@db:5432/prismadb?schema=public | ||
ADMIN_PASSWORD: password | ||
ORIGIN: http://localhost:3000 | ||
depends_on: | ||
- db | ||
networks: | ||
- app-network | ||
|
||
db: | ||
image: postgres:13 | ||
environment: | ||
POSTGRES_USER: prisma | ||
POSTGRES_PASSWORD: prisma | ||
POSTGRES_DB: prismadb | ||
volumes: | ||
- postgres-data:/var/lib/postgresql/data | ||
networks: | ||
- app-network | ||
|
||
networks: | ||
app-network: | ||
driver: bridge | ||
|
||
volumes: | ||
postgres-data: |
Oops, something went wrong.