Skip to content
This repository was archived by the owner on Dec 27, 2023. It is now read-only.

Commit 0e62436

Browse files
feat: finished written
1 parent d9f76f3 commit 0e62436

File tree

2 files changed

+36
-4
lines changed

2 files changed

+36
-4
lines changed

README-PTBR.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@ O GoDoc será executado em `localhost:6060`. Para acessar a documentação do Go
4646

4747
## MacOS config
4848

49-
O MySQL usado no Docker compose não é compatível aos chips da Apple (M1 e M2). Para que funcione faça as seguintes alterações:
49+
O MySQL usado no arquivo Docker compose não é compatível aos chips da Apple (M1 e M2). Para que funcione faça as seguintes alterações:
5050

51-
### .env:
51+
### Arquivo .env
5252

5353
Crie a variável `FEATWS_API_MYSQL_URI` e adicione o caminho como a seguir:
5454

5555
``````
5656
FEATWS_API_MYSQL_URI=api:api@tcp(localhost:3307)/api
5757
``````
5858

59-
### Docker-compose
59+
### Docker Compose
6060

61-
No docker compose será necessário que seja alterado o MySQL para o MariaDB. Apenas é necessário alterar o db do docker-compose.
61+
No docker compose será necessário que seja alterado o MySQL para o MariaDB. Apenas é necessário alterar o **db** do docker-compose.
6262

6363
``````
6464
db:

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,35 @@ GoDoc will run on `localhost:6060`. To access the GoDoc documentation, just [cli
4343

4444
## MacOS config
4545

46+
The MySQL used in the Docker Compose file isn't compatible with Apple's M1 and M2 chips. To make it work, perform the following modifications:
47+
48+
### Arquivo .env
49+
50+
Create the variable FEATWS_API_MYSQL_URI and set the path as follows:
51+
52+
``````
53+
FEATWS_API_MYSQL_URI=api:api@tcp(localhost:3307)/api
54+
``````
55+
56+
### Docker Compose
57+
58+
In the Docker Compose file, it is necessary to change MySQL to MariaDB. Only the "db" section in the docker-compose file needs to be modified.
59+
60+
``````
61+
db:
62+
image: mariadb
63+
restart: always
64+
ports:
65+
- 3307:3306
66+
volumes:
67+
- ./data/mysql:/var/lib/mysql:rw
68+
user: mysql
69+
environment:
70+
MARIADB_ROOT_PASSWORD: "root"
71+
MARIADB_DATABASE: "api"
72+
MARIADB_USER: "api"
73+
MARIADB_PASSWORD: "api"
74+
TELEMETRY_HTTPCLIENT_TLS: "false"
75+
TELEMETRY_EXPORTER_JAEGER_AGENT_HOST: "localhost"
76+
TELEMETRY_ENVIRONMENT: local
77+
``````

0 commit comments

Comments
 (0)