Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ Optional: Build the app with plugins (arcgis and sftp)

Run an instance of mongodb via Docker Desktop:

docker run -d -p 27017:27017 mongo:6.0.4
docker run -d -p 27017:27017 mongo:6.0.27

Run the app with the `instance/config.ts` settings

Expand Down Expand Up @@ -437,6 +437,8 @@ provide extra functionality like [encryption](https://www.veracrypt.fr) or
[remote mounting](https://github.com/libfuse/sshfs) transparently to the
Docker container and Mage application. If you don't have any requirements of
that sort, you can modify the Compose file to use [Docker-managed volumes](https://docs.docker.com/storage/volumes/) instead of bind mounts.
There are commented-out entries in the `docker-compose.yml` file with example
specifications of Docker-managed volumes.

### Ports
The only port the Compose file exposes to the host by default is 4242 on the
Expand Down Expand Up @@ -604,6 +606,8 @@ provide extra functionality like [encryption](https://www.veracrypt.fr) or
[remote mounting](https://github.com/libfuse/sshfs) transparently to the
Docker container and Mage application. If you don't have any requirements of
that sort, you can modify the Compose file to use [Docker-managed volumes](https://docs.docker.com/storage/volumes/) instead of bind mounts.
There are commented-out entries in the `docker-compose.yml` file with example
specifications of Docker-managed volumes.

### Ports
The only port the Compose file exposes to the host by default is 4242 on the
Expand Down
17 changes: 14 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
services:

mage-db:
image: bitnami/mongodb:6.0.13
image: mongodb/mongodb-community-server:6.0-ubi9
volumes:
- ./database/data:/bitnami/mongodb
- ./database/log:/opt/bitnami/mongodb/logs
- ./database/data:/data/db
- ./database/log:/var/log/mongodb
# If you'd rather use a Docker volume than a bind mount, use a volume configuration
# like this instead:
# - mongodb-data:/data/db
# Uncomment the following ports block to allow the mongo client on your
# host machine to connect to MongoDB in the Docker container.
# ports:
Expand All @@ -22,6 +25,9 @@ services:
platform: linux/amd64
volumes:
- ./server/resources:/var/lib/mage
# If you'd rather use a Docker volume than a bind mount, use a volume configuration
# like this instead:
# - mage-server-resources:/var/lib/mage
# Comment the ports block to disallow connections directly to the node
# server when running the mage-web-proxy below.
ports:
Expand Down Expand Up @@ -54,3 +60,8 @@ services:
networks:
mage.net:
driver: bridge

# Uncomment this section to use Docker volumes instead of bind mounts for data directories:
# volumes:
# "mongodb-data":
# "mage-server-resources":
17 changes: 14 additions & 3 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
services:

mage-db:
image: bitnami/mongodb:6.0.13
image: mongodb/mongodb-community-server:6.0-ubi9
volumes:
- ./database/data:/bitnami/mongodb
- ./database/log:/opt/bitnami/mongodb/logs
- ./database/data:/data/db
- ./database/log:/var/log/mongodb
# If you'd rather use a Docker volume than a bind mount, use a volume configuration
# like this instead:
# - mongo-data:/data/db
# Uncomment the following ports block to allow the mongo client on your
# host machine to connect to MongoDB in the Docker container.
# ports:
Expand All @@ -22,6 +25,9 @@ services:
platform: linux/amd64
volumes:
- ./server/resources:/var/lib/mage
# If you'd rather use a Docker volume than a bind mount, use a volume configuration
# like this instead:
# - server-resources:/var/lib/mage
# Comment the ports block to disallow connections directly to the node
# server when running the mage-web-proxy below.
ports:
Expand Down Expand Up @@ -52,3 +58,8 @@ services:
networks:
mage.net:
driver: bridge

# Uncomment this section to use Docker volumes instead of bind mounts for data directories:
# volumes:
# "mongo-data":
# "server-resources":
Loading