Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
feat: finish Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
YanceyOfficial committed Mar 26, 2020
1 parent dccc707 commit 4af37da
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 18 deletions.
16 changes: 0 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,3 @@ COPY --from=builder /usr/src/app/dist ./dist
EXPOSE 3002

CMD ["yarn", "deploy"]

# Builds
#
# docker build -t blog-be-next .

# Runs
#
# docker run -d -p 127.0.0.1:3002:3002 --name blog-be-next blog-be-next:latest

# MongoDB
#
# docker run -d -p 127.0.0.1:27019:27017 --name mongodb mongo:latest

# Enter MongoDB's container
#
# docker exec -it mongodb bash
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
mongo:
image: mongo
ports:
#- '27017:27017'
- '27016:27017'
networks:
- blog-network
Expand All @@ -29,5 +30,3 @@ services:
networks:
blog-network:
driver: bridge
# Run
# docker-compose up -d
File renamed without changes.
28 changes: 28 additions & 0 deletions docs/docker-command.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Docker command

## Docker

```bash
# Builds
#
# docker build -t blog-be-next .

# Runs
#
# docker run -d -p 127.0.0.1:3002:3002 --name blog-be-next blog-be-next:latest

# MongoDB
#
# docker run -d -p 127.0.0.1:27019:27017 --name mongodb mongo:latest

# Enter MongoDB's container
#
# docker exec -it mongodb bash
```

## Docker compose

```bash
# Run
# docker-compose up -d
```
File renamed without changes.

0 comments on commit 4af37da

Please sign in to comment.