mirror of
https://github.com/saveweb/mongo_stwp_image.git
synced 2024-09-19 16:15:28 -07:00
14 lines
296 B
YAML
14 lines
296 B
YAML
|
version: '3.9'
|
||
|
|
||
|
services:
|
||
|
mongo_stwp:
|
||
|
image: mongo_stwp
|
||
|
restart: always
|
||
|
container_name: "mongo_stwp"
|
||
|
ports:
|
||
|
- "27017:27017"
|
||
|
hostname: test-mongo # hostname is needed for replica set
|
||
|
volumes:
|
||
|
- ./data/db:/var/lib/mongodb
|
||
|
- ./etc/mongo:/etc/mongo/
|