![Screenshot 2024-02-13 at 11 32 27 AM](https://private-user-images.githubusercontent.com/1606194/304499663-1c458faf-6cc7-4d47-82ec-30e9598e976f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NDIzNTMsIm5iZiI6MTczODk0MjA1MywicGF0aCI6Ii8xNjA2MTk0LzMwNDQ5OTY2My0xYzQ1OGZhZi02Y2M3LTRkNDctODJlYy0zMGU5NTk4ZTk3NmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMTUyNzMzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTMzZDEyNDViOWE5YzVlM2U5YzVmNjE5NWNlMWQyM2U5Y2NhN2VkYTVhNzRiYzc2NTZkNjZmODJjOTM1NzlkZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Lidl2eKZvmrkBav9LVgu8QcBcVsyJVmxvBpgZQ8Eaxs)
Note that all docker-compose
commands rely on the docker-compose.yml
file and can only be run from the root directory of this repository.
Stopped containers maintain their state. This is equivalent to using CTRL+C to exit docker-compose up
.
docker-compose stop
Restart stopped containers:
docker-compose start
Connect to the web container with bash.
docker-compose exec web bash
View logs for all containers (helpful if running in detached mode).
docker-compose logs -f
Completely remove the containers.
docker-compose down
Launch as a background process by using the -d
flag for "detached" mode.
docker-compose up -d
Force rebuilding of images from Dockerfiles.
docker-compose up --build