Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
OlehDutchenko committed Jan 8, 2025
1 parent a33b7f6 commit 1cdf05c
Show file tree
Hide file tree
Showing 9 changed files with 129 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This file contains the most common exclusions for all workspaces
# Specific workspaces may have additional exclusions that are not listed here

# Dependencies
node_modules
.pnp
.pnp.js

# Testing
coverage

# Turbo
.turbo

# Vercel
.vercel

# Next.js
next-env.d.ts
.env*local

# Build Outputs
.next/
out/
build
dist


# Debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# IDE & Editor
.idea

# Misc
.DS_Store
.cache
.refs
.tmp
*.pem
4 changes: 4 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
legacy-peer-deps=true
enable-pre-post-scripts=true
auto-install-peers=true
node-linker=hoisted
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package.json
pnpm-lock.yaml
node_modules
pnpm-workspace.yaml
static/**
*.hbs

11 changes: 11 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"arrowParens": "always",
"bracketSpacing": true,
"bracketSameLine": false,
"printWidth": 80,
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"tabWidth": 4,
"useTabs": true
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# dev-docker-compose-template
# pnpm-dev-docker-template
13 changes: 13 additions & 0 deletions compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: change_my_name

services:
dev:
build:
dockerfile: docker/dev.dockerfile
container_name: ${COMPOSE_PROJECT_NAME}-dev
hostname: ${COMPOSE_PROJECT_NAME}-dev
tty: true
volumes:
- ./:/app
ports:
- '3000:3000'
15 changes: 15 additions & 0 deletions docker/dev.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This file is used to build the local development image for the project

FROM node:20-alpine

ARG PNPM_HOME="/pnpm"

ENV PNPM_HOME="${PNPM_HOME}"
ENV PATH="$PNPM_HOME:$PATH"
ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0

RUN apk --no-cache add git libc6-compat
RUN corepack enable pnpm && corepack prepare pnpm --activate
RUN pnpm config set store-dir ${PNPM_HOME}/.pnpm-store

WORKDIR /app
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"packageManager": "[email protected]",
"scripts": {
"--- DEV-DOCKER ---": "SECTION",
"dev-up": "docker compose -f compose.dev.yml up -d && npm run dev-exec",
"dev-exec": "docker exec -it change_my_name-dev sh",
"dev-down": "docker compose -f compose.dev.yml down --remove-orphans"
},
"devDependencies": {
"prettier": "^3.4.2"
}
}
24 changes: 24 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1cdf05c

Please sign in to comment.