Files
myDrive/docker-compose.yml
T
Ayush Sehrawat b82c3665a1 feat(docker): add MongoDB and improve setup instructions (#82)
* feat(docker): add MongoDB and improve setup instructions

* fix: reduce docker image size and other minor improvements

* fix: reduce docker image size and other minor improvements

* docs: update README for correct env file naming

* feat(docker): add environment variables and enhance Docker instructions

* docs: update README structure and enhance installation instructions

* docs: update README to clarify requirements for Docker and non-Docker setups

* docs: update README to improve Docker instructions and formatting

* docs: update code blocks in README to use shell syntax highlighting

* docs: refine installation steps and environment variable instructions

* docs: enhance README formatting for Docker instructions

* docs: correct formatting for environment variable examples in README

* docs: enhance README with badges and improved formatting

* docs: improve Docker instructions and formatting in README

* docs: update README to use figure elements for image captions

* docs: update README to replace figure elements with markdown images

* docs: update README to use shell syntax highlighting for code blocks

* docs: fix typo in README for environment file renaming step
2025-03-01 17:27:32 -05:00

48 lines
1.4 KiB
YAML

services:
app:
container_name: mydrive
image: kylehoell/mydrive:latest
volumes:
# Use the following volumes section if you want to use bind mounts:
# - /path/to/data:/data/
# - /path/to/temp:/temp/
# Use the following volumes section if you want to use named volumes:
- mydrive-data:/data/
- mydrive-temp:/temp/
ports:
- "${HTTP_PORT:-3000}:3000"
# Optional: Uncomment the following line if you want to use HTTPS
#- "${HTTPS_PORT:-8080}:8080"
# Use expose: if using a reverse proxy
# expose:
# - 3000
# - 8080
env_file:
- .env # Copy .env.example to .env and fill in the values
mongo:
image: mongo:8
container_name: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: username
MONGO_INITDB_ROOT_PASSWORD: password
expose:
- 27017
volumes:
- db-data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
timeout: 10s
interval: 10s
retries: 10
start_period: 10s
# Use the following volumes section if you want to use named volumes.
volumes:
mydrive-data:
mydrive-temp:
db-data: