Removed misleading federation etc/
This commit is contained in:
parent
1fd9bdfa7c
commit
d450548245
@ -1,22 +0,0 @@
|
||||
== 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
|
||||
----
|
||||
|
||||
@ -1,57 +0,0 @@
|
||||
version: "3"
|
||||
services:
|
||||
db_origin:
|
||||
image: percona:8.0
|
||||
container_name: db_origin
|
||||
restart: on-failure
|
||||
environment:
|
||||
MYSQL_DATABASE: corteza
|
||||
MYSQL_USER: corteza
|
||||
MYSQL_PASSWORD: rootcorteza
|
||||
MYSQL_ROOT_PASSWORD: rootcorteza
|
||||
volumes:
|
||||
- "../../data/db_origin:/var/lib/mysql"
|
||||
ports:
|
||||
- 3306:3306
|
||||
|
||||
db_destination:
|
||||
image: percona:8.0
|
||||
container_name: db_destination
|
||||
restart: on-failure
|
||||
environment:
|
||||
MYSQL_DATABASE: corteza
|
||||
MYSQL_USER: corteza
|
||||
MYSQL_PASSWORD: rootcorteza
|
||||
MYSQL_ROOT_PASSWORD: rootcorteza
|
||||
volumes:
|
||||
- "../../data/db_destination:/var/lib/mysql"
|
||||
ports:
|
||||
- 3307:3306
|
||||
|
||||
node_origin:
|
||||
image: golang
|
||||
container_name: node_origin
|
||||
entrypoint: [ make, watch ]
|
||||
depends_on: [ db_origin ]
|
||||
volumes:
|
||||
- "../../:/app"
|
||||
- "./.env.orig:/app/.env"
|
||||
working_dir: /app
|
||||
restart: on-failure
|
||||
ports:
|
||||
- 8084:8084
|
||||
|
||||
node_destination:
|
||||
image: golang
|
||||
container_name: node_destination
|
||||
entrypoint: [ make, watch ]
|
||||
depends_on: [ db_destination ]
|
||||
volumes:
|
||||
- "../../:/app"
|
||||
- "./.env.dest:/app/.env"
|
||||
working_dir: /app
|
||||
restart: on-failure
|
||||
ports:
|
||||
- 8085:8084
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user