23 lines
614 B
Plaintext
23 lines
614 B
Plaintext
== Development setup for origin and destination nodes
|
|
|
|
Add the appropriate .env files
|
|
[source,bash]
|
|
----
|
|
$ cp .env federation/etc/.env.orig
|
|
$ cp .env federation/etc/.env.dest
|
|
----
|
|
|
|
Change the DB_DSN in each of the files
|
|
----
|
|
.env.orig: DB_DSN=corteza:rootcorteza@tcp(db_origin:3306)/corteza?collation=utf8mb4_general_ci
|
|
.env.dest: DB_DSN=corteza:rootcorteza@tcp(db_destination:3306)/corteza?collation=utf8mb4_general_ci
|
|
----
|
|
|
|
Run the nodes
|
|
[source,bash]
|
|
----
|
|
$ docker-compose -f federation/etc/docker-compose.yml up -d node_origin
|
|
$ docker-compose -f federation/etc/docker-compose.yml up -d node_destination
|
|
----
|
|
|