Skip to content

Commit

Permalink
preparo deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mpvaldez committed Jul 30, 2024
1 parent 238212b commit d784dfc
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 24 deletions.
24 changes: 0 additions & 24 deletions .env

This file was deleted.

15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:18-alpine

WORKDIR /usr/src/app

COPY package*.json ./

RUN npm install

COPY . .

RUN npm run build

EXPOSE 3000

CMD [ "npm", "start"]
24 changes: 24 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: '3'

services:
ddbb:
image: mongo:3.6
ports:
- 27017:27017
volumes:
- ./tmp/db:/data/db

app:
build:
context: .
image: ghcr.io/democraciaenred/bien-restituido:latest
volumes:
- .:/usr/src/app
- /usr/src/app/.next
env_file:
- .env
links:
- ddbb:mongodb
ports:
- 3000:3000
command: npm run dev
File renamed without changes.

0 comments on commit d784dfc

Please sign in to comment.