Skip to content

Commit

Permalink
docs(arm): add paragraph about docker (#638)
Browse files Browse the repository at this point in the history
* fix(docs): m1 compatibility

* fix(docs): m1 compatibiliy more details

* docs(arm): fix bug
  • Loading branch information
maxgfr authored Oct 5, 2021
1 parent ad994a7 commit 0d2c2df
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
node_modules
.env.production
docker-compose.override.yml
.vscode
targets/hasura-m1
32 changes: 32 additions & 0 deletions README-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,38 @@ A webpage is opened in your browser. The password is `admin1` as set in the `.en
> docker-compose up hasura
> ```
#### ARM64 architecture
Firstly, you have to create a docker-compose.override.yml file with the following content:
```yaml
version: "3.8"
services:
hasura:
build:
context: targets/hasura-m1
restart: always
extra_hosts:
host.docker.internal: host-gateway
volumes:
- ./targets/hasura-m1/migrations:/hasura-migrations
- ./targets/hasura-m1/metadata:/hasura-metadata
ports:
- "8080:8080"
depends_on:
- postgres
env_file:
- .env
environment:
HASURA_GRAPHQL_ENABLE_CONSOLE: "false"
```
Secondly, you have to run a `cp targets/hasura target/hasura-m1` and change the `Dockerfile` by replacing the first line by the following line:

```yaml
FROM fedormelexin/graphql-engine-arm64:v1.3.3.cli-migrations-v2
```

### Inject documents

A part of the content is based on documents retrieved from another services (code du travail, contributions, fiche travail/emploi...).
Expand Down

0 comments on commit 0d2c2df

Please sign in to comment.