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

Commit

Permalink
feat: docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
YanceyOfficial committed Mar 26, 2020
1 parent d6bd8e9 commit 574b505
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
version: '3'

services:
db:
image: mongo
ports:
- '27016:27017'
networks:
- blog-network
volumes:
# - "/data/mongo:/data/db"
- '/tmp/mongo:/data/db'

api:
restart: always
build: .
Expand All @@ -24,9 +14,17 @@ services:
networks:
- blog-network
depends_on:
- db

- mongo

mongo:
image: mongo
ports:
- '27016:27017'
networks:
- blog-network
volumes:
# - "/data/mongo:/data/db"
- '/tmp/mongo:/data/db'

networks:
blog-network:
Expand Down

0 comments on commit 574b505

Please sign in to comment.