-
Notifications
You must be signed in to change notification settings - Fork 34
Installation
The easiest way to set up Go-Money is via a Docker image and a Docker Compose file.
An example docker-compose.yaml file is hosted under the "compose" folder of the repository
- docker
- docker compose
- git
git clone https://github.com/ft-t/go-money
cd go-money/compose/
cp .env.example .env
<configure your instance, refer to configuration section> (nano\vi .env)
docker compose up -d-
You will need to copy
.env.exampleto.envand adjust it according to your environment. -
By default,
.envfile contains a reference to thelatesttag, but you can fetch a specific tag version from Repository -
You can configure
GO_MONEY_EXTERNAL_HOSTandGRAFANA_EXTERNAL_HOSTto your public domain, so Traefik (router/lb) will route traffic via the internal Docker network.- If you don't want to use Traefik, you can expose the app directly in
docker-compose.yaml. By default, it's exposed on 127.0.0.1 and portGRPC_PORT= 52055 - Grafana is also exposed on 127.0.0.1 and port
GRAFANA_PORT= 3000
- If you don't want to use Traefik, you can expose the app directly in
-
Your instance, by default,t will be exposed on port
:80(HTTP) via Traefik, If you need to adjust that, you can changePUBLIC_PORTto any other port
Please make sure to change GRAFANA_ADMIN_PASSWORD and DB_PASSWORD to your values.
https://github.com/ft-t/go-money/wiki/Architecture
Please check the security guide https://github.com/ft-t/go-money/wiki/Security
A list of all environment variables can be extracted from Go configuration structure Struct
Example env variables are:
GRPC_PORT=12562
GRAFANA_CONFIG_URL=https://mygrafana.url