Skip to content

Commit 09757c1

Browse files
committed
Named container and volume in compose file
1 parent 91d11f9 commit 09757c1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

apps/server/docker-compose.yaml

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
version: "2"
1+
version: '2'
22

33
services:
44
lecternDb:
5-
image: "bitnami/mongodb:4.0"
5+
container_name: lectern-mongo
6+
image: bitnami/mongodb:4.0
67
ports:
7-
- "27017:27017"
8+
- 27017:27017
89
volumes:
9-
- "mongodb_data:/bitnami"
10+
- mongodb_data:/bitnami
1011
environment:
1112
MONGODB_USERNAME: admin
1213
MONGODB_PASSWORD: password
1314
MONGODB_DATABASE: lectern
1415
MONGODB_ROOT_PASSWORD: password123
1516
volumes:
1617
mongodb_data:
18+
name: lectern-mongo-data
1719
driver: local

0 commit comments

Comments
 (0)