Skip to content

Commit

Permalink
add dev docker compose file and pin mongo image to major version
Browse files Browse the repository at this point in the history
  • Loading branch information
khakers committed Nov 11, 2023
1 parent 2fa1310 commit ba23738
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
21 changes: 21 additions & 0 deletions dev.docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
services:
bot:
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
environment:
- CONNECTION_URI=mongodb://mongo
depends_on:
- mongo
mongo:
image: mongo:7
restart: always
volumes:
- mongodb:/data/db
ports:
- 127.0.0.1:27017:27017

volumes:
mongodb:
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.7"
services:
bot:
image: ghcr.io/raidensakura/modmail:stable
Expand All @@ -12,7 +11,7 @@ services:
- mongo
mongo:
image: mongo
container_name: mongodb
container_name: mongodb:7
restart: always
volumes:
- mongodb:/data/db
Expand Down

0 comments on commit ba23738

Please sign in to comment.