Skip to content

Commit ba23738

Browse files
committed
add dev docker compose file and pin mongo image to major version
1 parent 2fa1310 commit ba23738

2 files changed

Lines changed: 22 additions & 2 deletions

File tree

dev.docker-compose.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
services:
2+
bot:
3+
build:
4+
context: .
5+
dockerfile: Dockerfile
6+
env_file:
7+
- .env
8+
environment:
9+
- CONNECTION_URI=mongodb://mongo
10+
depends_on:
11+
- mongo
12+
mongo:
13+
image: mongo:7
14+
restart: always
15+
volumes:
16+
- mongodb:/data/db
17+
ports:
18+
- 127.0.0.1:27017:27017
19+
20+
volumes:
21+
mongodb:

docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: "3.7"
21
services:
32
bot:
43
image: ghcr.io/raidensakura/modmail:stable
@@ -12,7 +11,7 @@ services:
1211
- mongo
1312
mongo:
1413
image: mongo
15-
container_name: mongodb
14+
container_name: mongodb:7
1615
restart: always
1716
volumes:
1817
- mongodb:/data/db

0 commit comments

Comments
 (0)