Skip to content

Commit

Permalink
update readme with local deeployment instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
macielti committed Dec 13, 2024
1 parent 606f957 commit 4dc59e9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ flowchart TD
LB -.->|metrics| MT(Grafana Cloud)
```

## Local Deployment (Docker)

You can run the application locally using Docker Compose.

Navigate to the `dev-resources/local_deploy` directory and run the following command:

```shell
docker compose up -d migratus
```

After the database is created, run the following command:

```shell
docker compose up -d rango
```

## License

Copyright © 2024 Bruno do Nascimento Maciel
Expand Down
6 changes: 1 addition & 5 deletions dev-resources/local_deploy/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
services:

migratus:
image: ghcr.io/macielti/rango-graalvm:sha-8975afe
image: ghcr.io/macielti/migratus-container:sha-35cd3d9
container_name: migratus
volumes:
- ./resources/migratus.config.edn:/app/resources/migratus.config.edn
- ./resources/migrations:/app/resources/migrations
- rango_sqlite_data:/app/data/
deploy:
resources:
limits:
memory: "25MB"

rango:
image: ghcr.io/macielti/rango-graalvm:sha-8975afe
Expand Down

0 comments on commit 4dc59e9

Please sign in to comment.