Update docker compose doc

This commit is contained in:
Alex
2023-12-01 12:31:12 +01:00
parent a8d755fe93
commit b08462b49f

View File

@@ -53,9 +53,20 @@ A Docker Compose [reference file](https://github.com/ClaperCo/Claper/blob/main/d
```sh ```sh
git clone https://github.com/ClaperCo/Claper.git git clone https://github.com/ClaperCo/Claper.git
cd Claper cd Claper
docker-compose up docker compose up
``` ```
## Using Docker Compose for Dev
To easy check new features, it is possible to directly build the Docker image from the source code and run the container with the [docker-compose-dev.yml](https://github.com/ClaperCo/Claper/blob/main/docker-compose-dev.yml) file.
```sh
git clone https://github.com/ClaperCo/Claper.git
cd Claper
docker compose -f docker-compose-dev.yml up
```
### ARM architecture ### ARM architecture
If you are using an ARM architecture (like Apple M1), the original Docker image won't work. You can build the image yourself by replacing the `BUILDER_IMAGE` argument in the `Dockerfile` with `ARG BUILDER_IMAGE="hexpm/elixir-arm64:1.13.2-erlang-24.2.1-debian-bullseye-20210902-slim"` and then build the image as described above. If you are using an ARM architecture (like Apple M1), the original Docker image won't work. You can build the image yourself by replacing the `BUILDER_IMAGE` argument in the `Dockerfile` with `ARG BUILDER_IMAGE="hexpm/elixir-arm64:1.13.2-erlang-24.2.1-debian-bullseye-20210902-slim"` and then build the image as described above.