update compose for monorepo
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 5s
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 5s
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
FROM node:18
|
||||
FROM node:22-slim
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
CMD npm run dev
|
||||
# Source is bind-mounted at runtime; install on start so package.json changes
|
||||
# are picked up without a rebuild, then run the Next.js dev server.
|
||||
CMD npm install --legacy-peer-deps && npm run dev -- -H 0.0.0.0
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
FROM node:18
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
CMD npx prisma studio
|
||||
@@ -1,12 +0,0 @@
|
||||
### Docker/Podman compose.yml
|
||||
```yml
|
||||
services:
|
||||
sarlinkportal:
|
||||
image: git.shihaam.dev/sarlink/sarlink-portal
|
||||
hostname: sarlink-portal
|
||||
ports:
|
||||
- 3000:3000
|
||||
# volumes:
|
||||
# - uploads:/var/www/html/public/uploads
|
||||
env_file: .env
|
||||
```
|
||||
@@ -1,23 +0,0 @@
|
||||
FROM node:20-slim AS builder
|
||||
WORKDIR /var/www/html
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
COPY . .
|
||||
RUN npm ci --legacy-peer-deps
|
||||
RUN npm run build
|
||||
|
||||
FROM node:20-slim
|
||||
WORKDIR /var/www/html
|
||||
|
||||
RUN apt update && apt install openssl -y
|
||||
|
||||
COPY --from=builder /var/www/html/package.json ./
|
||||
COPY --from=builder /var/www/html/node_modules ./node_modules
|
||||
COPY --from=builder /var/www/html/.next ./.next
|
||||
COPY --from=builder /var/www/html/public ./public
|
||||
|
||||
VOLUME /var/www/html
|
||||
|
||||
ENV HOSTNAME "0.0.0.0"
|
||||
|
||||
CMD ["npm", "start"]
|
||||
@@ -1,7 +0,0 @@
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: ../../
|
||||
dockerfile: .build/prod/bun.Dockerfile
|
||||
hostname: sarlink-portal
|
||||
image: git.shihaam.dev/sarlink/sarlink-portal
|
||||
@@ -1,7 +0,0 @@
|
||||
FROM oven/bun:1.1.42-debian
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
RUN apt update && apt install openssl -y
|
||||
|
||||
CMD bunx prisma studio
|
||||
+4
-24
@@ -1,32 +1,12 @@
|
||||
services:
|
||||
node:
|
||||
frontend:
|
||||
build:
|
||||
context: .build/dev
|
||||
dockerfile: node.Dockerfile
|
||||
hostname: sarlink-portal-dev
|
||||
hostname: frontend
|
||||
volumes:
|
||||
- ./:/var/www/html/
|
||||
ports:
|
||||
- 3000:3000
|
||||
prisma-studio:
|
||||
build:
|
||||
context: .build/dev
|
||||
dockerfile: prisma.Dockerfile
|
||||
hostname: sarlink-portal-studio
|
||||
volumes:
|
||||
- ./:/var/www/html/
|
||||
ports:
|
||||
- 5555:5555
|
||||
database:
|
||||
image: postgres:14
|
||||
hostname: sarlink-portal-db
|
||||
volumes:
|
||||
- db-data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: testpass123
|
||||
POSTGRES_DB: mydb
|
||||
|
||||
|
||||
volumes:
|
||||
db-data:
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
Generated
+4
-21
@@ -5854,7 +5854,7 @@
|
||||
"version": "19.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.0.tgz",
|
||||
"integrity": "sha512-UaicktuQI+9UKyA4njtDOGBD/67t8YEBt2xdfqu8+gP9hqPUPsiXlNPcpS2gVdjmis5GKPG3fCxbQLVgxsQZ8w==",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"csstype": "^3.0.2"
|
||||
}
|
||||
@@ -5863,7 +5863,7 @@
|
||||
"version": "19.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.1.2.tgz",
|
||||
"integrity": "sha512-XGJkWF41Qq305SKWEILa1O8vzhb3aOo3ogBlSmiqNko/WmRb6QIaweuZCXjKygVDXpzXb5wyxKTSOsmkuqj+Qw==",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"peerDependencies": {
|
||||
"@types/react": "^19.0.0"
|
||||
}
|
||||
@@ -7445,7 +7445,7 @@
|
||||
},
|
||||
"node_modules/csstype": {
|
||||
"version": "3.1.3",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/d3-array": {
|
||||
@@ -9050,24 +9050,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/git-semver-tags/node_modules/conventional-commits-parser": {
|
||||
"version": "6.2.0",
|
||||
"resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-6.2.0.tgz",
|
||||
"integrity": "sha512-uLnoLeIW4XaoFtH37qEcg/SXMJmKF4vi7V0H2rnPueg+VEtFGA/asSCNTcq4M/GQ6QmlzchAEtOoDTtKqWeHag==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"meow": "^13.0.0"
|
||||
},
|
||||
"bin": {
|
||||
"conventional-commits-parser": "dist/cli/index.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/git-semver-tags/node_modules/meow": {
|
||||
"version": "13.2.0",
|
||||
"resolved": "https://registry.npmjs.org/meow/-/meow-13.2.0.tgz",
|
||||
@@ -13447,6 +13429,7 @@
|
||||
"version": "5.8.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",
|
||||
"integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
|
||||
Reference in New Issue
Block a user