From 5dcf23778f797b1c417b4816dd0b5632a2773531 Mon Sep 17 00:00:00 2001 From: Everton Catto Heckler <36872146+EvertonChBG@users.noreply.github.com> Date: Tue, 7 Aug 2018 19:16:27 -0300 Subject: [PATCH 1/2] docker-compose script For those who choose to use docker instead of vagrant. --- docker-compose.yml | 62 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0cb9224 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,62 @@ +version: '2' +services: + dbApp: + image: postgres:10-alpine + volumes: + - ./storage/dbApp:/var/lib/postgresql + networks: + db-network: + aliases: + - dbApp + db01: + image: postgres:10-alpine + volumes: + - ./storage/db01:/var/lib/postgresql + networks: + db-network: + aliases: + - db01 + db02: + image: postgres:10-alpine + volumes: + - ./storage/db02:/var/lib/postgresql + networks: + db-network: + aliases: + - db02 + db03: + image: postgres:10-alpine + volumes: + - ./storage/db03:/var/lib/postgresql + networks: + db-network: + aliases: + - db03 + db04: + image: postgres:10-alpine + volumes: + - ./storage/db04:/var/lib/postgresql + networks: + db-network: + aliases: + - db04 + db05: + image: postgres:10-alpine + volumes: + - ./storage/db05:/var/lib/postgresql + networks: + db-network: + aliases: + - db05 + db06: + image: postgres:10-alpine + volumes: + - ./storage/db06:/var/lib/postgresql + networks: + db-network: + aliases: + - db06 + +networks: + db-network: + driver: bridge From ba15979111d186ffbc83490234db111b47616a98 Mon Sep 17 00:00:00 2001 From: Everton Catto Heckler <36872146+EvertonChBG@users.noreply.github.com> Date: Fri, 7 Dec 2018 17:07:27 -0200 Subject: [PATCH 2/2] new version rewritten for version 3 --- docker-compose.yml | 39 ++++++--------------------------------- 1 file changed, 6 insertions(+), 33 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0cb9224..3bc7c61 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,62 +1,35 @@ -version: '2' +version: '3' services: dbApp: image: postgres:10-alpine volumes: - ./storage/dbApp:/var/lib/postgresql - networks: - db-network: - aliases: - - dbApp db01: image: postgres:10-alpine volumes: - ./storage/db01:/var/lib/postgresql - networks: - db-network: - aliases: - - db01 + db02: image: postgres:10-alpine volumes: - ./storage/db02:/var/lib/postgresql - networks: - db-network: - aliases: - - db02 + db03: image: postgres:10-alpine volumes: - ./storage/db03:/var/lib/postgresql - networks: - db-network: - aliases: - - db03 + db04: image: postgres:10-alpine volumes: - ./storage/db04:/var/lib/postgresql - networks: - db-network: - aliases: - - db04 + db05: image: postgres:10-alpine volumes: - ./storage/db05:/var/lib/postgresql - networks: - db-network: - aliases: - - db05 + db06: image: postgres:10-alpine volumes: - ./storage/db06:/var/lib/postgresql - networks: - db-network: - aliases: - - db06 - -networks: - db-network: - driver: bridge