mongo_stwp_image/docker-compose.yml

17 lines
559 B
YAML
Raw Normal View History

2024-04-19 07:26:33 -07:00
version: '3.9'
services:
mongo_stwp:
image: mongo_stwp
2024-04-19 07:42:34 -07:00
restart: unless-stopped
2024-04-19 07:26:33 -07:00
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/
2024-05-08 22:33:32 -07:00
network_mode: "bridge"
# do not let compose create a *_default network, use bridge instead so that we can
# easily enable ipv6 with minimal configuration
# https://docs.docker.com/config/daemon/ipv6/#use-ipv6-for-the-default-bridge-network