From 4086100e8ce6f478cc2413d7b6499aa0096eaa47 Mon Sep 17 00:00:00 2001 From: Eugene Artamonov Date: Fri, 7 Jul 2023 12:32:05 +0300 Subject: [PATCH] Distribute compose file among the examples --- JavaScript/1-http-aware/docker-compose.yml | 14 ++++++++++++++ JavaScript/2-controller/docker-compose.yml | 14 ++++++++++++++ JavaScript/3-crud/docker-compose.yml | 14 ++++++++++++++ JavaScript/4-service/docker-compose.yml | 14 ++++++++++++++ JavaScript/5-agnostic/docker-compose.yml | 14 ++++++++++++++ JavaScript/6-ws/docker-compose.yml | 14 ++++++++++++++ JavaScript/7-fs/docker-compose.yml | 14 ++++++++++++++ JavaScript/8-vm/docker-compose.yml | 14 ++++++++++++++ JavaScript/a-config/docker-compose.yml | 14 ++++++++++++++ JavaScript/b-transport/docker-compose.yml | 14 ++++++++++++++ JavaScript/c-commonjs/docker-compose.yml | 14 ++++++++++++++ JavaScript/d-messenger/docker-compose.yml | 14 ++++++++++++++ 12 files changed, 168 insertions(+) create mode 100644 JavaScript/1-http-aware/docker-compose.yml create mode 100644 JavaScript/2-controller/docker-compose.yml create mode 100644 JavaScript/3-crud/docker-compose.yml create mode 100644 JavaScript/4-service/docker-compose.yml create mode 100644 JavaScript/5-agnostic/docker-compose.yml create mode 100644 JavaScript/6-ws/docker-compose.yml create mode 100644 JavaScript/7-fs/docker-compose.yml create mode 100644 JavaScript/8-vm/docker-compose.yml create mode 100644 JavaScript/a-config/docker-compose.yml create mode 100644 JavaScript/b-transport/docker-compose.yml create mode 100644 JavaScript/c-commonjs/docker-compose.yml create mode 100644 JavaScript/d-messenger/docker-compose.yml diff --git a/JavaScript/1-http-aware/docker-compose.yml b/JavaScript/1-http-aware/docker-compose.yml new file mode 100644 index 0000000..6e11ea7 --- /dev/null +++ b/JavaScript/1-http-aware/docker-compose.yml @@ -0,0 +1,14 @@ +version: '3' +services: + postgres: + image: postgres:alpine + environment: + POSTGRES_PASSWORD: marcus + POSTGRES_USER: marcus + POSTGRES_DB: example + volumes: + - ./db/structure.sql:/docker-entrypoint-initdb.d/1.sql + - ./db/data.sql://docker-entrypoint-initdb.d/2.sql + ports: + - 5432:5432 + restart: always diff --git a/JavaScript/2-controller/docker-compose.yml b/JavaScript/2-controller/docker-compose.yml new file mode 100644 index 0000000..6e11ea7 --- /dev/null +++ b/JavaScript/2-controller/docker-compose.yml @@ -0,0 +1,14 @@ +version: '3' +services: + postgres: + image: postgres:alpine + environment: + POSTGRES_PASSWORD: marcus + POSTGRES_USER: marcus + POSTGRES_DB: example + volumes: + - ./db/structure.sql:/docker-entrypoint-initdb.d/1.sql + - ./db/data.sql://docker-entrypoint-initdb.d/2.sql + ports: + - 5432:5432 + restart: always diff --git a/JavaScript/3-crud/docker-compose.yml b/JavaScript/3-crud/docker-compose.yml new file mode 100644 index 0000000..6e11ea7 --- /dev/null +++ b/JavaScript/3-crud/docker-compose.yml @@ -0,0 +1,14 @@ +version: '3' +services: + postgres: + image: postgres:alpine + environment: + POSTGRES_PASSWORD: marcus + POSTGRES_USER: marcus + POSTGRES_DB: example + volumes: + - ./db/structure.sql:/docker-entrypoint-initdb.d/1.sql + - ./db/data.sql://docker-entrypoint-initdb.d/2.sql + ports: + - 5432:5432 + restart: always diff --git a/JavaScript/4-service/docker-compose.yml b/JavaScript/4-service/docker-compose.yml new file mode 100644 index 0000000..6e11ea7 --- /dev/null +++ b/JavaScript/4-service/docker-compose.yml @@ -0,0 +1,14 @@ +version: '3' +services: + postgres: + image: postgres:alpine + environment: + POSTGRES_PASSWORD: marcus + POSTGRES_USER: marcus + POSTGRES_DB: example + volumes: + - ./db/structure.sql:/docker-entrypoint-initdb.d/1.sql + - ./db/data.sql://docker-entrypoint-initdb.d/2.sql + ports: + - 5432:5432 + restart: always diff --git a/JavaScript/5-agnostic/docker-compose.yml b/JavaScript/5-agnostic/docker-compose.yml new file mode 100644 index 0000000..6e11ea7 --- /dev/null +++ b/JavaScript/5-agnostic/docker-compose.yml @@ -0,0 +1,14 @@ +version: '3' +services: + postgres: + image: postgres:alpine + environment: + POSTGRES_PASSWORD: marcus + POSTGRES_USER: marcus + POSTGRES_DB: example + volumes: + - ./db/structure.sql:/docker-entrypoint-initdb.d/1.sql + - ./db/data.sql://docker-entrypoint-initdb.d/2.sql + ports: + - 5432:5432 + restart: always diff --git a/JavaScript/6-ws/docker-compose.yml b/JavaScript/6-ws/docker-compose.yml new file mode 100644 index 0000000..6e11ea7 --- /dev/null +++ b/JavaScript/6-ws/docker-compose.yml @@ -0,0 +1,14 @@ +version: '3' +services: + postgres: + image: postgres:alpine + environment: + POSTGRES_PASSWORD: marcus + POSTGRES_USER: marcus + POSTGRES_DB: example + volumes: + - ./db/structure.sql:/docker-entrypoint-initdb.d/1.sql + - ./db/data.sql://docker-entrypoint-initdb.d/2.sql + ports: + - 5432:5432 + restart: always diff --git a/JavaScript/7-fs/docker-compose.yml b/JavaScript/7-fs/docker-compose.yml new file mode 100644 index 0000000..6e11ea7 --- /dev/null +++ b/JavaScript/7-fs/docker-compose.yml @@ -0,0 +1,14 @@ +version: '3' +services: + postgres: + image: postgres:alpine + environment: + POSTGRES_PASSWORD: marcus + POSTGRES_USER: marcus + POSTGRES_DB: example + volumes: + - ./db/structure.sql:/docker-entrypoint-initdb.d/1.sql + - ./db/data.sql://docker-entrypoint-initdb.d/2.sql + ports: + - 5432:5432 + restart: always diff --git a/JavaScript/8-vm/docker-compose.yml b/JavaScript/8-vm/docker-compose.yml new file mode 100644 index 0000000..6e11ea7 --- /dev/null +++ b/JavaScript/8-vm/docker-compose.yml @@ -0,0 +1,14 @@ +version: '3' +services: + postgres: + image: postgres:alpine + environment: + POSTGRES_PASSWORD: marcus + POSTGRES_USER: marcus + POSTGRES_DB: example + volumes: + - ./db/structure.sql:/docker-entrypoint-initdb.d/1.sql + - ./db/data.sql://docker-entrypoint-initdb.d/2.sql + ports: + - 5432:5432 + restart: always diff --git a/JavaScript/a-config/docker-compose.yml b/JavaScript/a-config/docker-compose.yml new file mode 100644 index 0000000..6e11ea7 --- /dev/null +++ b/JavaScript/a-config/docker-compose.yml @@ -0,0 +1,14 @@ +version: '3' +services: + postgres: + image: postgres:alpine + environment: + POSTGRES_PASSWORD: marcus + POSTGRES_USER: marcus + POSTGRES_DB: example + volumes: + - ./db/structure.sql:/docker-entrypoint-initdb.d/1.sql + - ./db/data.sql://docker-entrypoint-initdb.d/2.sql + ports: + - 5432:5432 + restart: always diff --git a/JavaScript/b-transport/docker-compose.yml b/JavaScript/b-transport/docker-compose.yml new file mode 100644 index 0000000..6e11ea7 --- /dev/null +++ b/JavaScript/b-transport/docker-compose.yml @@ -0,0 +1,14 @@ +version: '3' +services: + postgres: + image: postgres:alpine + environment: + POSTGRES_PASSWORD: marcus + POSTGRES_USER: marcus + POSTGRES_DB: example + volumes: + - ./db/structure.sql:/docker-entrypoint-initdb.d/1.sql + - ./db/data.sql://docker-entrypoint-initdb.d/2.sql + ports: + - 5432:5432 + restart: always diff --git a/JavaScript/c-commonjs/docker-compose.yml b/JavaScript/c-commonjs/docker-compose.yml new file mode 100644 index 0000000..6e11ea7 --- /dev/null +++ b/JavaScript/c-commonjs/docker-compose.yml @@ -0,0 +1,14 @@ +version: '3' +services: + postgres: + image: postgres:alpine + environment: + POSTGRES_PASSWORD: marcus + POSTGRES_USER: marcus + POSTGRES_DB: example + volumes: + - ./db/structure.sql:/docker-entrypoint-initdb.d/1.sql + - ./db/data.sql://docker-entrypoint-initdb.d/2.sql + ports: + - 5432:5432 + restart: always diff --git a/JavaScript/d-messenger/docker-compose.yml b/JavaScript/d-messenger/docker-compose.yml new file mode 100644 index 0000000..6e11ea7 --- /dev/null +++ b/JavaScript/d-messenger/docker-compose.yml @@ -0,0 +1,14 @@ +version: '3' +services: + postgres: + image: postgres:alpine + environment: + POSTGRES_PASSWORD: marcus + POSTGRES_USER: marcus + POSTGRES_DB: example + volumes: + - ./db/structure.sql:/docker-entrypoint-initdb.d/1.sql + - ./db/data.sql://docker-entrypoint-initdb.d/2.sql + ports: + - 5432:5432 + restart: always