Skip to content

Commit

Permalink
Setup(Docker): Add MongoDB Entry to Docker Compose File
Browse files Browse the repository at this point in the history
  • Loading branch information
ktutak1337 committed Mar 14, 2024
1 parent 6c9ffc9 commit d9f8fc0
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
version: "3.7"

services:
services:
mongo:
image: mongo
container_name: mongo
restart: unless-stopped
#environment: # If you disable authentication then you need to remove username and password from connection string in appsettings.
# - MONGO_INITDB_ROOT_USERNAME=root # set your container root username
# - MONGO_INITDB_ROOT_PASSWORD=secret # set your container root password
ports:
- 27017:27017
networks:
- stellar-chat
volumes:
- mongo_data:/data/db

seq:
image: datalust/seq
container_name: seq
Expand All @@ -20,4 +34,5 @@ networks:
name: stellar-chat-network

volumes:
seq_data:
seq_data:
mongo_data:

0 comments on commit d9f8fc0

Please sign in to comment.