appstore-1panel/apps/mongodb/6.0.4/docker-compose.yml

21 lines
453 B
YAML
Raw Normal View History

2023-02-22 18:04:02 +08:00
version: '3'
services:
mongodb:
container_name: ${CONTAINER_NAME}
image: mongo:6.0.4
restart: always
2023-02-22 18:04:02 +08:00
environment:
MONGO_INITDB_ROOT_USERNAME: ${PANEL_DB_ROOT_USER}
MONGO_INITDB_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD}
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:27017
volumes:
- ./data:/data/db
labels:
createdBy: "Apps"
2023-02-22 18:04:02 +08:00
networks:
1panel-network:
external: true