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

Commit

Permalink
feat: update docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
YanceyOfficial committed Mar 25, 2020
1 parent 3637f8d commit e8b432d
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
version: '12'
version: '3'

services:
be:
container_name: 'blog-be-next'
build: .
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
ports:
- '127.0.0.1:3002:3002'
- '3002:3002'
depends_on:
- db

# cms:
# build: .
Expand All @@ -23,9 +27,12 @@ services:
# caddy:
# image: 'caddy'

mongo:
container_name: 'mongodb'
db:
image: 'mongo:latest'
ports: '127.0.0.1:27017:27017'
environment:
# - MONGO_INITDB_ROOT_USERNAME=root
# - MONGO_INITDB_ROOT_PASSWORD=123456
- MONGO_INITDB_DATABASE=fuckyourmother
ports: '27017:27017'
volumes:
- '/data'
- '/data/mongo:/data/db'

0 comments on commit e8b432d

Please sign in to comment.