-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe BOTH methods of starting the container in the README #379
Comments
I think so (but I'm open to discussion). Reasons why:
On the upside of having it entirely inside the docker container:
|
If we do decide to suggest an alternative way to run the docker version, I would suggest we have a section in the README called something like "An Alternative Way to Start the Docker" This as opposed to trying to intertwine the instructions of the two methods in the same section, which I think will confuse both methods. Plus having these two different modes in separate sections implicitly shows the user that one method is preferred. |
I also prefer method 2 (making the folders first) instead of using the docker volumes. This is partially based on the assumption that new users will start might start with the docker version and then transition to using chifra directly rather than through docker. |
Previously `docker compose up` would use docker volumes. This pull request requires users to first make 2 folders, one for cache and one for unchained. The override file now allows users to use docker volumes where it previously mounted the users 2 host files for the cache/unchained storage. Closes TrueBlocks#379
Previously `docker compose up` would use docker volumes. This pull request requires users to first make 2 folders, one for cache and one for unchained. The override file now allows users to use docker volumes where it previously mounted the users 2 host files for the cache/unchained storage. Closes TrueBlocks#379
Previously `docker compose up` would use docker volumes. This pull request requires users to first make 2 folders, one for cache and one for unchained. The override file now allows users to use docker volumes where it previously mounted the users 2 host files for the cache/unchained storage. Closes TrueBlocks#379
Previously `docker compose up` would use docker volumes. This pull request requires users to first make 2 folders, one for cache and one for unchained. The override file now allows users to use docker volumes where it previously mounted the users 2 host files for the cache/unchained storage. Closes TrueBlocks#379
Previously `docker compose up` would use docker volumes. This pull request requires users to first make 2 folders, one for cache and one for unchained. The override file now allows users to use docker volumes where it previously mounted the users 2 host files for the cache/unchained storage. Closes TrueBlocks#379
Previously `docker compose up` would use docker volumes. This pull request requires users to first make 2 folders, one for cache and one for unchained. The override file now allows users to use docker volumes where it previously mounted the users 2 host files for the cache/unchained storage. `docker-compose.local.example` is renamed to `docker-compose.volume-override.yml` because of the previosuly stated changes. `scripts/up.sh` is deleted because the command `docker compose up` is now the primary command used instead of the longer override command. Closes TrueBlocks#379
Previously `docker compose up` would use docker volumes. This pull request requires users to first make 2 folders, one for cache and one for unchained. The override file now allows users to use docker volumes where it previously mounted the users 2 host files for the cache/unchained storage. `docker-compose.local.example` is renamed to `docker-compose.volume-override.yml` because of the previosuly stated changes. `scripts/up.sh` is deleted because the command `docker compose up` is now the primary command used instead of the longer override command. Closes #379
Suggestion
Describe BOTH methods of starting the container in the README.
Reasoning
Its nice to have options, and I wasn't initially familiar with the
docker compose -f docker-compose.yml -f docker-compose.local.yml up
syntax. I've useddocker compose up
many times, but I had to do a quick google to understand the override syntax.Method 1
docker compose up
In the current configuration,
docker compose up
works and it uses named volumes:docker-compose.yml
Method 2
The second method is
docker compose -f docker-compose.yml -f docker-compose.local.yml up
which is what is currently described in the README.This mounts folders from the host machine into the container.
Questions
Is method 2 the preferred method for starting the container? As in do you prefer having the ability to access the folders on the host machine?
If so we could reverse the configuration so that the default start command would be
docker compose up
and then if you wanted named volumes INSTEAD of the mounted folders you would use the longer commanddocker compose -f docker-compose.yml -f docker-compose.local.yml up
.This would then require swapping the volume parts of the two file so
docker-compose.yml
would be:and
docker-compose.local.yml
would be:Keeping the
docker-compose.yml
as is means thatdocker compose up
works with no additional work. Using the mounted folders requires the user to create the folders prior as instructed which obviously isn't a huge step.The text was updated successfully, but these errors were encountered: