diff --git a/README.md b/README.md index 50076f9..86f9adc 100644 --- a/README.md +++ b/README.md @@ -18,58 +18,54 @@ These samples provide a starting point for how to integrate different services u ## Samples of Docker Compose applications with multiple integrated services -Use with Docker Dev Environments Icon indicates Sample is compatible with [Docker Dev Environments](https://docs.docker.com/desktop/dev-environments/) in Docker Desktop version 4.10 or later. - Docker + wasm Icon indicates Sample is compatible with [Docker+Wasm](https://docs.docker.com/desktop/wasm/). - [`ASP.NET / MS-SQL`](aspnet-mssql) - Sample ASP.NET core application with MS SQL server database. - [`Elasticsearch / Logstash / Kibana`](elasticsearch-logstash-kibana) - Sample Elasticsearch, Logstash, and Kibana stack. - [`Go / NGINX / MySQL`](nginx-golang-mysql) - Sample Go application -with an Nginx proxy and a MySQL database. Use with Docker Dev Environments +with an Nginx proxy and a MySQL database. - [`Go / NGINX / PostgreSQL`](nginx-golang-postgres) - Sample Go -application with an Nginx proxy and a PostgreSQL database. Use with Docker Dev Environments +application with an Nginx proxy and a PostgreSQL database. - [`Java Spark / MySQL`](sparkjava-mysql) - Sample Java application and -a MySQL database. Use with Docker Dev Environments -- [`NGINX / ASP.NET / MySQL`](nginx-aspnet-mysql) - Sample Nginx reverse proxy with an C# backend using ASP.NET Use with Docker Dev Environments +a MySQL database. +- [`NGINX / ASP.NET / MySQL`](nginx-aspnet-mysql) - Sample Nginx reverse proxy with an C# backend using ASP.NET. - [`NGINX / Flask / MongoDB`](nginx-flask-mongo) - Sample Python/Flask -application with Nginx proxy and a Mongo database. Use with Docker Dev Environments +application with Nginx proxy and a Mongo database. - [`NGINX / Flask / MySQL`](nginx-flask-mysql) - Sample Python/Flask application with an Nginx proxy and a MySQL database. -- [`NGINX / Node.js / Redis`](nginx-nodejs-redis) - Sample Node.js application with Nginx proxy and a Redis database -- [`NGINX / Go`](nginx-golang) - Sample Nginx proxy with a Go backend. Use with Docker Dev Environments +- [`NGINX / Node.js / Redis`](nginx-nodejs-redis) - Sample Node.js application with Nginx proxy and a Redis database. +- [`NGINX / Go`](nginx-golang) - Sample Nginx proxy with a Go backend. - [`NGINX / WSGI / Flask`](nginx-wsgi-flask) - Sample Nginx reverse proxy with a Flask backend using WSGI. -- [`PostgreSQL / pgAdmin`](postgresql-pgadmin) - Sample setup for postgreSQL database with pgAdmin web interface -- [`Python / Flask / Redis`](flask-redis) - Sample Python/Flask and a Redis database Use with Docker Dev Environments +- [`PostgreSQL / pgAdmin`](postgresql-pgadmin) - Sample setup for postgreSQL database with pgAdmin web interface. +- [`Python / Flask / Redis`](flask-redis) - Sample Python/Flask and a Redis database. - [`React / Spring / MySQL`](react-java-mysql) - Sample React -application with a Spring backend and a MySQL database. Use with Docker Dev Environments +application with a Spring backend and a MySQL database. - [`React / Express / MySQL`](react-express-mysql) - Sample React -application with a Node.js backend and a MySQL database. Use with Docker Dev Environments +application with a Node.js backend and a MySQL database. - [`React / Express / MongoDB`](react-express-mongodb) - Sample React -application with a Node.js backend and a Mongo database. Use with Docker Dev Environments +application with a Node.js backend and a Mongo database. - [`React / Rust / PostgreSQL`](react-rust-postgres) - Sample React -application with a Rust backend and a Postgres database. Use with Docker Dev Environments -- [`React / Nginx`](react-nginx) - Sample React application with Nginx. Use with Docker Dev Environments +application with a Rust backend and a Postgres database. +- [`React / Nginx`](react-nginx) - Sample React application with Nginx. - [`Spring / PostgreSQL`](spring-postgres) - Sample Java application -with Spring framework and a Postgres database. Use with Docker Dev Environments +with Spring framework and a Postgres database. - [`WasmEdge / MySQL / Nginx`](wasmedge-mysql-nginx) - Sample Wasm-based web application with a static HTML frontend, using a MySQL (MariaDB) database. The frontend connects to a Wasm microservice written in Rust, that runs using the WasmEdge runtime. Compatible with Docker+wasm - [`WasmEdge / Kafka / MySQL`](wasmedge-kafka-mysql) - Sample Wasm-based microservice that subscribes to a Kafka (Redpanda) queue topic, and transforms and saves any incoming message into a MySQL (MariaDB) database. Compatible with Docker+wasm ## Single service samples -Use with Docker Dev Environments Icon indicates Sample is compatible with [Docker Dev Environments](https://docs.docker.com/desktop/dev-environments/) in Docker Desktop version 4.10 or later. - -- [`Angular`](angular) Use with Docker Dev Environments -- [`Spark`](sparkjava) Use with Docker Dev Environments -- [`VueJS`](vuejs) Use with Docker Dev Environments -- [`Flask`](flask) Use with Docker Dev Environments -- [`PHP`](apache-php) Use with Docker Dev Environments -- [`Traefik`](traefik-golang) Use with Docker Dev Environments -- [`Django`](django) Use with Docker Dev Environments +- [`Angular`](angular) +- [`Spark`](sparkjava) +- [`VueJS`](vuejs) +- [`Flask`](flask) +- [`PHP`](apache-php) +- [`Traefik`](traefik-golang) +- [`Django`](django) - [`Minecraft server`](https://github.com/docker/awesome-compose/tree/master/minecraft) - [`Plex`](https://github.com/docker/awesome-compose/tree/master/plex) - [`Portainer`](https://github.com/docker/awesome-compose/tree/master/portainer) - [`Wireguard`](https://github.com/docker/awesome-compose/tree/master/wireguard) -- [`FastAPI`](fastapi) Use with Docker Dev Environments +- [`FastAPI`](fastapi) ## Basic setups for different platforms (not production ready - useful for personal use) diff --git a/angular/.docker/docker-compose.yaml b/angular/.docker/docker-compose.yaml deleted file mode 100644 index 2910433..0000000 --- a/angular/.docker/docker-compose.yaml +++ /dev/null @@ -1,11 +0,0 @@ -services: - web: - build: - context: angular - target: dev-envs - ports: - - 4200:4200 - volumes: - - /var/run/docker.sock:/var/run/docker.sock - - ./angular:/project - - /project/node_modules diff --git a/angular/README.md b/angular/README.md index 6d164a6..19fb867 100644 --- a/angular/README.md +++ b/angular/README.md @@ -1,11 +1,4 @@ ## Compose sample - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/angular) - ### Angular service Project structure: diff --git a/apache-php/.docker/docker-compose.yaml b/apache-php/.docker/docker-compose.yaml deleted file mode 100644 index 817b0fc..0000000 --- a/apache-php/.docker/docker-compose.yaml +++ /dev/null @@ -1,10 +0,0 @@ -services: - web: - build: - context: app - target: dev-envs - ports: - - '80:80' - volumes: - - /var/run/docker.sock:/var/run/docker.sock - - ./app:/var/www/html/ diff --git a/apache-php/README.md b/apache-php/README.md index 7179b8f..1ef50ad 100644 --- a/apache-php/README.md +++ b/apache-php/README.md @@ -1,11 +1,4 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/apache-php) - ### PHP application with Apache2 Project structure: diff --git a/django/.docker/docker-compose.yaml b/django/.docker/docker-compose.yaml deleted file mode 100644 index 1f340f8..0000000 --- a/django/.docker/docker-compose.yaml +++ /dev/null @@ -1,9 +0,0 @@ -services: - web: - build: - context: app - target: dev-envs - ports: - - '8000:8000' - volumes: - - /var/run/docker.sock:/var/run/docker.sock \ No newline at end of file diff --git a/django/README.md b/django/README.md index 53c97f5..2a18733 100644 --- a/django/README.md +++ b/django/README.md @@ -1,11 +1,4 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/django) - ### Django application in dev mode Project structure: diff --git a/fastapi/.docker/docker-compose.yaml b/fastapi/.docker/docker-compose.yaml deleted file mode 100644 index d4f2188..0000000 --- a/fastapi/.docker/docker-compose.yaml +++ /dev/null @@ -1,13 +0,0 @@ -services: - api: - build: - context: . - target: dev-envs - container_name: fastapi-application - environment: - PORT: 8000 - ports: - - '8000:8000' - volumes: - - /var/run/docker.sock:/var/run/docker.sock - restart: "no" diff --git a/fastapi/README.md b/fastapi/README.md index 13434de..69e6796 100644 --- a/fastapi/README.md +++ b/fastapi/README.md @@ -1,11 +1,4 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/fastapi) - ### Python/FastAPI application Project structure: diff --git a/flask-redis/.docker/docker-compose.yaml b/flask-redis/.docker/docker-compose.yaml deleted file mode 100644 index a687434..0000000 --- a/flask-redis/.docker/docker-compose.yaml +++ /dev/null @@ -1,16 +0,0 @@ -services: - redis: - image: redislabs/redismod - ports: - - '6379:6379' - web: - build: - context: . - target: dev-envs - stop_signal: SIGINT - ports: - - '8000:8000' - volumes: - - /var/run/docker.sock:/var/run/docker.sock - depends_on: - - redis diff --git a/flask-redis/README.md b/flask-redis/README.md index f9dfd03..029569e 100644 --- a/flask-redis/README.md +++ b/flask-redis/README.md @@ -1,11 +1,4 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/flask-redis) - ### Python/Flask application using a Redis database Project structure: diff --git a/flask/.docker/docker-compose.yaml b/flask/.docker/docker-compose.yaml deleted file mode 100644 index 8e9e1b2..0000000 --- a/flask/.docker/docker-compose.yaml +++ /dev/null @@ -1,10 +0,0 @@ -services: - web: - build: - context: app - target: dev-envs - stop_signal: SIGINT - ports: - - '8000:8000' - volumes: - - /var/run/docker.sock:/var/run/docker.sock diff --git a/flask/README.md b/flask/README.md index c8b0efd..6edbd60 100644 --- a/flask/README.md +++ b/flask/README.md @@ -1,11 +1,4 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/flask) - ### Python/Flask application Project structure: diff --git a/icon_devenvs.svg b/icon_devenvs.svg deleted file mode 100644 index 80830fe..0000000 --- a/icon_devenvs.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - diff --git a/nginx-aspnet-mysql/.docker/docker-compose.yaml b/nginx-aspnet-mysql/.docker/docker-compose.yaml deleted file mode 100644 index 51607b8..0000000 --- a/nginx-aspnet-mysql/.docker/docker-compose.yaml +++ /dev/null @@ -1,38 +0,0 @@ -services: - backend: - build: - context: backend - target: dev-envs - restart: always - secrets: - - db-password - depends_on: ['db'] - environment: - - ASPNETCORE_URLS=http://+:8000 - volumes: - - /var/run/docker.sock:/var/run/docker.sock - - db: - image: mariadb:10-focal - command: '--default-authentication-plugin=mysql_native_password' - restart: always - secrets: - - db-password - volumes: - - db-data:/var/lib/mysql - environment: - - MYSQL_DATABASE=example - - MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db-password - - proxy: - build: proxy - ports: - - 80:80 - depends_on: - - backend - -volumes: - db-data: -secrets: - db-password: - file: db/password.txt diff --git a/nginx-aspnet-mysql/README.md b/nginx-aspnet-mysql/README.md index e18863c..e013ce6 100644 --- a/nginx-aspnet-mysql/README.md +++ b/nginx-aspnet-mysql/README.md @@ -1,12 +1,5 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/nginx-aspnet-mysql) - -### ASP.NET server with an Nginx proxy and a MySQL database +### ASP.NET server with a Nginx proxy and a MySQL database Project structure: ``` diff --git a/nginx-flask-mongo/.docker/docker-compose.yaml b/nginx-flask-mongo/.docker/docker-compose.yaml deleted file mode 100644 index 63cd95b..0000000 --- a/nginx-flask-mongo/.docker/docker-compose.yaml +++ /dev/null @@ -1,27 +0,0 @@ -services: - web: - image: nginx - volumes: - - ./nginx/nginx.conf:/tmp/nginx.conf - environment: - - FLASK_SERVER_ADDR=backend:9091 - command: /bin/bash -c "envsubst < /tmp/nginx.conf > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'" - ports: - - 80:80 - depends_on: - - backend - - backend: - build: - context: flask - target: dev-envs - stop_signal: SIGINT - environment: - - FLASK_SERVER_PORT=9091 - volumes: - - /var/run/docker.sock:/var/run/docker.sock - depends_on: - - mongo - - mongo: - image: mongo diff --git a/nginx-flask-mongo/README.md b/nginx-flask-mongo/README.md index 97fa9ff..17e925f 100644 --- a/nginx-flask-mongo/README.md +++ b/nginx-flask-mongo/README.md @@ -1,11 +1,4 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/nginx-flask-mongo) - ### Python/Flask application with Nginx proxy and a Mongo database Project structure: diff --git a/nginx-flask-mysql/.docker/docker-compose.yaml b/nginx-flask-mysql/.docker/docker-compose.yaml deleted file mode 100644 index b15dda7..0000000 --- a/nginx-flask-mysql/.docker/docker-compose.yaml +++ /dev/null @@ -1,61 +0,0 @@ -services: - db: - image: mariadb:10-focal - command: '--default-authentication-plugin=mysql_native_password' - restart: always - healthcheck: - test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent"] - interval: 3s - retries: 5 - start_period: 30s - secrets: - - db-password - volumes: - - db-data:/var/lib/mysql - networks: - - backnet - environment: - - MYSQL_DATABASE=example - - MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db-password - expose: - - 3306 - - 33060 - - backend: - build: - context: backend - target: dev-envs - restart: always - volumes: - - /var/run/docker.sock:/var/run/docker.sock - secrets: - - db-password - ports: - - 8000:8000 - networks: - - backnet - - frontnet - depends_on: - db: - condition: service_healthy - - proxy: - build: proxy - restart: always - ports: - - 80:80 - depends_on: - - backend - networks: - - frontnet - -volumes: - db-data: - -secrets: - db-password: - file: db/password.txt - -networks: - backnet: - frontnet: diff --git a/nginx-flask-mysql/README.md b/nginx-flask-mysql/README.md index 291612c..466c2ea 100644 --- a/nginx-flask-mysql/README.md +++ b/nginx-flask-mysql/README.md @@ -1,11 +1,4 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/nginx-flask-mysql) - ### Python/Flask with Nginx proxy and MySQL database Project structure: diff --git a/nginx-golang-mysql/.docker/docker-compose.yaml b/nginx-golang-mysql/.docker/docker-compose.yaml deleted file mode 100644 index d04af29..0000000 --- a/nginx-golang-mysql/.docker/docker-compose.yaml +++ /dev/null @@ -1,50 +0,0 @@ -services: - backend: - build: - context: backend - target: dev-envs - volumes: - - /var/run/docker.sock:/var/run/docker.sock - secrets: - - db-password - depends_on: - db: - condition: service_healthy - - db: - image: mariadb:10-focal - command: '--default-authentication-plugin=mysql_native_password' - restart: always - healthcheck: - test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent"] - interval: 3s - retries: 5 - start_period: 30s - secrets: - - db-password - volumes: - - db-data:/var/lib/mysql - environment: - - MYSQL_DATABASE=example - - MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db-password - expose: - - 3306 - - proxy: - image: nginx - volumes: - - type: bind - source: ./proxy/nginx.conf - target: /etc/nginx/conf.d/default.conf - read_only: true - ports: - - 80:80 - depends_on: - - backend - -volumes: - db-data: - -secrets: - db-password: - file: db/password.txt diff --git a/nginx-golang-mysql/README.md b/nginx-golang-mysql/README.md index 1696a85..8107ec0 100644 --- a/nginx-golang-mysql/README.md +++ b/nginx-golang-mysql/README.md @@ -1,12 +1,5 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/nginx-golang-mysql) - -### Go server with an Nginx proxy and a MariaDB/MySQL database +### Go server with a Nginx proxy and a MariaDB/MySQL database Project structure: ``` diff --git a/nginx-golang-postgres/.docker/docker-compose.yaml b/nginx-golang-postgres/.docker/docker-compose.yaml deleted file mode 100644 index 0176bb1..0000000 --- a/nginx-golang-postgres/.docker/docker-compose.yaml +++ /dev/null @@ -1,50 +0,0 @@ -services: - backend: - build: - context: backend - target: dev-envs - volumes: - - /var/run/docker.sock:/var/run/docker.sock - secrets: - - db-password - depends_on: - db: - condition: service_healthy - - db: - image: postgres - restart: always - user: postgres - secrets: - - db-password - volumes: - - db-data:/var/lib/postgresql/data - environment: - - POSTGRES_DB=example - - POSTGRES_PASSWORD_FILE=/run/secrets/db-password - expose: - - 5432 - healthcheck: - test: [ "CMD", "pg_isready" ] - interval: 10s - timeout: 5s - retries: 5 - - proxy: - image: nginx - volumes: - - type: bind - source: ./proxy/nginx.conf - target: /etc/nginx/conf.d/default.conf - read_only: true - ports: - - 80:80 - depends_on: - - backend - -volumes: - db-data: - -secrets: - db-password: - file: db/password.txt diff --git a/nginx-golang-postgres/README.md b/nginx-golang-postgres/README.md index 1671ec8..8ea6e20 100644 --- a/nginx-golang-postgres/README.md +++ b/nginx-golang-postgres/README.md @@ -1,12 +1,5 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/nginx-golang-postgres) - -### Go server with an Nginx proxy and a Postgres database +### Go server with a Nginx proxy and a Postgres database Project structure: ``` diff --git a/nginx-golang/.docker/docker-compose.yaml b/nginx-golang/.docker/docker-compose.yaml deleted file mode 100644 index f09c393..0000000 --- a/nginx-golang/.docker/docker-compose.yaml +++ /dev/null @@ -1,19 +0,0 @@ -services: - proxy: - image: nginx - volumes: - - type: bind - source: ./proxy/nginx.conf - target: /etc/nginx/conf.d/default.conf - read_only: true - ports: - - 80:80 - depends_on: - - backend - - backend: - build: - context: backend - target: dev-envs - volumes: - - /var/run/docker.sock:/var/run/docker.sock diff --git a/nginx-golang/README.md b/nginx-golang/README.md index 506626b..57debe8 100644 --- a/nginx-golang/README.md +++ b/nginx-golang/README.md @@ -1,11 +1,4 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/nginx-golang) - ### NGINX proxy with Go backend Project structure: diff --git a/react-express-mongodb/.docker/docker-compose.yaml b/react-express-mongodb/.docker/docker-compose.yaml deleted file mode 100644 index 05114d7..0000000 --- a/react-express-mongodb/.docker/docker-compose.yaml +++ /dev/null @@ -1,42 +0,0 @@ -services: - frontend: - build: - context: frontend - target: dev-envs - ports: - - 3000:3000 - stdin_open: true - volumes: - - /var/run/docker.sock:/var/run/docker.sock - restart: always - networks: - - react-express - depends_on: - - backend - - backend: - restart: always - build: - context: backend - target: dev-envs - volumes: - - /var/run/docker.sock:/var/run/docker.sock - depends_on: - - mongo - networks: - - express-mongo - - react-express - expose: - - 3000 - mongo: - restart: always - image: mongo:4.2.0 - volumes: - - ./data:/data/db - networks: - - express-mongo - expose: - - 27017 -networks: - react-express: - express-mongo: diff --git a/react-express-mongodb/README.md b/react-express-mongodb/README.md index 69873cc..7a30be9 100644 --- a/react-express-mongodb/README.md +++ b/react-express-mongodb/README.md @@ -1,11 +1,4 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/react-express-mongodb) - ### React application with a NodeJS backend and a MongoDB database Project structure: diff --git a/react-express-mysql/.docker/docker-compose.yaml b/react-express-mysql/.docker/docker-compose.yaml deleted file mode 100644 index ec30529..0000000 --- a/react-express-mysql/.docker/docker-compose.yaml +++ /dev/null @@ -1,64 +0,0 @@ -services: - backend: - build: - args: - - NODE_ENV=development - context: backend - target: dev-envs - command: npm run start-watch - environment: - - DATABASE_DB=example - - DATABASE_USER=root - - DATABASE_PASSWORD=/run/secrets/db-password - - DATABASE_HOST=db - - NODE_ENV=development - ports: - - 80:80 - - 9229:9229 - - 9230:9230 - secrets: - - db-password - volumes: - - /var/run/docker.sock:/var/run/docker.sock - networks: - - public - - private - depends_on: - - db - db: - # We use a mariadb image which supports both amd64 & arm64 architecture - image: mariadb:10.6.4-focal - # If you really want to use MySQL, uncomment the following line - #image: mysql:8.0.27 - command: '--default-authentication-plugin=mysql_native_password' - restart: always - secrets: - - db-password - volumes: - - db-data:/var/lib/mysql - networks: - - private - environment: - - MYSQL_DATABASE=example - - MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db-password - frontend: - build: - context: frontend - target: dev-envs - ports: - - 3000:3000 - volumes: - - /var/run/docker.sock:/var/run/docker.sock - networks: - - public - depends_on: - - backend -networks: - public: - private: -volumes: - back-notused: - db-data: -secrets: - db-password: - file: db/password.txt diff --git a/react-express-mysql/README.md b/react-express-mysql/README.md index 46c4e4c..66fad57 100644 --- a/react-express-mysql/README.md +++ b/react-express-mysql/README.md @@ -1,11 +1,4 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/react-express-mysql) - ### React application with a NodeJS backend and a MySQL database Project structure: diff --git a/react-java-mysql/.docker/docker-compose.yaml b/react-java-mysql/.docker/docker-compose.yaml deleted file mode 100644 index 9e9c7b1..0000000 --- a/react-java-mysql/.docker/docker-compose.yaml +++ /dev/null @@ -1,61 +0,0 @@ -services: - backend: - build: - context: backend - target: dev-envs - restart: always - secrets: - - db-password - environment: - MYSQL_HOST: db - volumes: - - /var/run/docker.sock:/var/run/docker.sock - networks: - - react-spring - - spring-mysql - depends_on: - db: - condition: service_healthy - db: - # We use a mariadb image which supports both amd64 & arm64 architecture - image: mariadb:10.6.4-focal - # If you really want to use MySQL, uncomment the following line - #image: mysql:8.0.19 - environment: - - MYSQL_DATABASE=example - - MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db-password - restart: always - healthcheck: - test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent"] - interval: 3s - retries: 5 - start_period: 30s - secrets: - - db-password - volumes: - - db-data:/var/lib/mysql - networks: - - spring-mysql - frontend: - build: - context: frontend - target: dev-envs - ports: - - 3000:3000 - volumes: - - /var/run/docker.sock:/var/run/docker.sock - networks: - - react-spring - depends_on: - - backend - expose: - - 3306 - - 33060 -volumes: - db-data: {} -secrets: - db-password: - file: db/password.txt -networks: - react-spring: {} - spring-mysql: {} diff --git a/react-java-mysql/README.md b/react-java-mysql/README.md index 94972d6..ce4520f 100644 --- a/react-java-mysql/README.md +++ b/react-java-mysql/README.md @@ -1,11 +1,4 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/react-java-mysql) - ### React application with a Spring backend and a MySQL database Project structure: diff --git a/react-nginx/.docker/docker-compose.yaml b/react-nginx/.docker/docker-compose.yaml deleted file mode 100755 index 285e204..0000000 --- a/react-nginx/.docker/docker-compose.yaml +++ /dev/null @@ -1,11 +0,0 @@ -services: - frontend: - build: - context: . - target: dev-envs - container_name: frontend - ports: - - "80:3000" - - "3000:3000" - volumes: - - /var/run/docker.sock:/var/run/docker.sock diff --git a/react-nginx/README.md b/react-nginx/README.md index 7b7044a..b5ef35c 100755 --- a/react-nginx/README.md +++ b/react-nginx/README.md @@ -1,11 +1,4 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/react-nginx) - ### An project deploy React Application with Nginx Project structure: diff --git a/react-rust-postgres/.docker/docker-compose.yaml b/react-rust-postgres/.docker/docker-compose.yaml deleted file mode 100644 index 091741d..0000000 --- a/react-rust-postgres/.docker/docker-compose.yaml +++ /dev/null @@ -1,51 +0,0 @@ -name: react-rust-postgres -services: - frontend: - build: - context: ../frontend - target: dev-envs - networks: - - client-side - ports: - - 3000:3000 - volumes: - - /var/run/docker.sock:/var/run/docker.sock - - backend: - build: - context: ../backend - target: dev-envs - environment: - - RUST_LOG=debug - - PG_DBNAME=postgres - - PG_HOST=db - - PG_USER=postgres - - PG_PASSWORD=mysecretpassword - - ADDRESS=0.0.0.0:8000 - networks: - - client-side - - server-side - volumes: - - /var/run/docker.sock:/var/run/docker.sock - depends_on: - - db - - db: - image: postgres:12-alpine - restart: always - environment: - - POSTGRES_PASSWORD=mysecretpassword - networks: - - server-side - ports: - - 5432:5432 - volumes: - - db-data:/var/lib/postgresql/data - -networks: - client-side: {} - server-side: {} - -volumes: - backend-cache: {} - db-data: {} diff --git a/react-rust-postgres/readme.md b/react-rust-postgres/readme.md index 298de80..b800eb4 100644 --- a/react-rust-postgres/readme.md +++ b/react-rust-postgres/readme.md @@ -1,11 +1,4 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/react-rust-postgres) - ### React application with a Rust backend and a Postgresql database Project structure: diff --git a/sparkjava-mysql/.docker/docker-compose.yaml b/sparkjava-mysql/.docker/docker-compose.yaml deleted file mode 100644 index 3c31609..0000000 --- a/sparkjava-mysql/.docker/docker-compose.yaml +++ /dev/null @@ -1,32 +0,0 @@ -services: - backend: - build: - context: backend - target: dev-envs - ports: - - 8080:8080 - secrets: - - db-password - volumes: - - /var/run/docker.sock:/var/run/docker.sock - db: - # We use a mariadb image which supports both amd64 & arm64 architecture - image: mariadb:10.6.4-focal - # If you really want to use MySQL, uncomment the following line - #image: mysql:8.0.27 - restart: always - secrets: - - db-password - volumes: - - db-data:/var/lib/mysql - environment: - - MYSQL_DATABASE=example - - MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db-password - expose: - - 3306 - - 33060 -volumes: - db-data: -secrets: - db-password: - file: db/password.txt diff --git a/sparkjava-mysql/README.md b/sparkjava-mysql/README.md index 893ea3e..0b09e02 100644 --- a/sparkjava-mysql/README.md +++ b/sparkjava-mysql/README.md @@ -1,11 +1,4 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/sparkjava-mysql) - ### Java Spark application with MySQL database Project structure: diff --git a/sparkjava/.docker/docker-compose.yaml b/sparkjava/.docker/docker-compose.yaml deleted file mode 100644 index 6912419..0000000 --- a/sparkjava/.docker/docker-compose.yaml +++ /dev/null @@ -1,9 +0,0 @@ -services: - sparkjava: - build: - context: sparkjava - target: dev-envs - ports: - - 8080:8080 - volumes: - - /var/run/docker.sock:/var/run/docker.sock diff --git a/sparkjava/README.md b/sparkjava/README.md index 83d9223..224f72f 100644 --- a/sparkjava/README.md +++ b/sparkjava/README.md @@ -1,11 +1,4 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/sparkjava) - ### Spark Java Project structure: diff --git a/spring-postgres/.docker/docker-compose.yaml b/spring-postgres/.docker/docker-compose.yaml deleted file mode 100644 index 2237cde..0000000 --- a/spring-postgres/.docker/docker-compose.yaml +++ /dev/null @@ -1,34 +0,0 @@ -services: - backend: - build: - context: backend - target: dev-envs - ports: - - 8080:8080 - environment: - - POSTGRES_DB=example - networks: - - spring-postgres - volumes: - - /var/run/docker.sock:/var/run/docker.sock - db: - image: postgres - restart: always - secrets: - - db-password - volumes: - - db-data:/var/lib/postgresql/data - networks: - - spring-postgres - environment: - - POSTGRES_DB=example - - POSTGRES_PASSWORD_FILE=/run/secrets/db-password - expose: - - 5432 -volumes: - db-data: -secrets: - db-password: - file: db/password.txt -networks: - spring-postgres: diff --git a/spring-postgres/README.md b/spring-postgres/README.md index ca4e9cb..da63582 100644 --- a/spring-postgres/README.md +++ b/spring-postgres/README.md @@ -1,11 +1,4 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/spring-postgres) - ### Java application with Spring framework and a Postgres database Project structure: diff --git a/traefik-golang/.docker/docker-compose.yaml b/traefik-golang/.docker/docker-compose.yaml deleted file mode 100644 index 704fb96..0000000 --- a/traefik-golang/.docker/docker-compose.yaml +++ /dev/null @@ -1,22 +0,0 @@ -services: - frontend: - image: traefik:2.6 - command: --providers.docker --entrypoints.web.address=:80 --providers.docker.exposedbydefault=false - ports: - # The HTTP port - - "80:80" - volumes: - # So that Traefik can listen to the Docker events - - /var/run/docker.sock:/var/run/docker.sock - depends_on: - - backend - backend: - build: - context: backend - target: dev-envs - volumes: - - /var/run/docker.sock:/var/run/docker.sock - labels: - - "traefik.enable=true" - - "traefik.http.routers.go.rule=Path(`/`)" - - "traefik.http.services.go.loadbalancer.server.port=80" diff --git a/traefik-golang/README.md b/traefik-golang/README.md index 7a86e75..f4dc3ce 100644 --- a/traefik-golang/README.md +++ b/traefik-golang/README.md @@ -1,11 +1,4 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/traefik-golang) - ### TRAEFIK proxy with GO backend Project structure: diff --git a/vuejs/.docker/docker-compose.yaml b/vuejs/.docker/docker-compose.yaml deleted file mode 100644 index 7f0c50b..0000000 --- a/vuejs/.docker/docker-compose.yaml +++ /dev/null @@ -1,9 +0,0 @@ -services: - web: - build: - context: vuejs - target: dev-envs - ports: - - 8080:8080 - volumes: - - /var/run/docker.sock:/var/run/docker.sock diff --git a/vuejs/README.md b/vuejs/README.md index 1fd4d1d..8ff567f 100644 --- a/vuejs/README.md +++ b/vuejs/README.md @@ -1,11 +1,4 @@ ## Compose sample application - -### Use with Docker Development Environments - -You can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later. - -[Open in Docker Dev Environments Open in Docker Dev Environments](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/vuejs) - ### VueJS Project structure: diff --git a/wasmedge-kafka-mysql/.docker/docker-compose.yml b/wasmedge-kafka-mysql/.docker/docker-compose.yml deleted file mode 100644 index 6163108..0000000 --- a/wasmedge-kafka-mysql/.docker/docker-compose.yml +++ /dev/null @@ -1,36 +0,0 @@ -services: - redpanda: - image: docker.redpanda.com/vectorized/redpanda:v22.2.2 - command: - - redpanda start - - --smp 1 - - --overprovisioned - - --node-id 0 - - --kafka-addr PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092 - - --advertise-kafka-addr PLAINTEXT://redpanda:29092,OUTSIDE://redpanda:9092 - - --pandaproxy-addr 0.0.0.0:8082 - - --advertise-pandaproxy-addr localhost:8082 - ports: - - 8081:8081 - - 8082:8082 - - 9092:9092 - - 9644:9644 - - 29092:29092 - volumes: - - ./kafka:/app - etl: - image: etl-kafka - platform: wasi/wasm - build: - context: etl - environment: - DATABASE_URL: mysql://root:whalehello@db:3306/mysql - KAFKA_URL: kafka://redpanda:9092/order - RUST_BACKTRACE: full - RUST_LOG: info - restart: unless-stopped - runtime: io.containerd.wasmedge.v1 - db: - image: mariadb:10.9 - environment: - MYSQL_ROOT_PASSWORD: whalehello diff --git a/wasmedge-kafka-mysql/README.md b/wasmedge-kafka-mysql/README.md index 1efd5d7..b56d275 100644 --- a/wasmedge-kafka-mysql/README.md +++ b/wasmedge-kafka-mysql/README.md @@ -4,13 +4,6 @@ This sample demonstrates a WebAssembly (Wasm) microservice written in Rust. It subscribes to a Kafka queue topic on a Redpanda server, and then transforms and saves each message into a MySQL (MariaDB) database table. The microservice is compiled into Wasm and runs in the WasmEdge runtime, which is a secure and lightweight alternative to natively compiled Rust apps in Linux containers. -## Use with Docker Development Environments - -You will need a version of Docker Desktop or Docker CLI with Wasm support. - -* [Install Docker Desktop + Wasm (Beta)](https://docs.docker.com/desktop/wasm/) -* [Install Docker CLI + Wasm](https://github.com/chris-crone/wasm-day-na-22/tree/main/server) - ## WasmEdge server with Redpanda and MySQL database Project structure: diff --git a/wasmedge-mysql-nginx/.docker/docker-compose.yml b/wasmedge-mysql-nginx/.docker/docker-compose.yml deleted file mode 100644 index 86559a8..0000000 --- a/wasmedge-mysql-nginx/.docker/docker-compose.yml +++ /dev/null @@ -1,25 +0,0 @@ -services: - frontend: - image: nginx:alpine - ports: - - 8090:80 - volumes: - - ./frontend:/usr/share/nginx/html - - backend: - image: demo-microservice - platform: wasi/wasm - build: - context: backend/ - ports: - - 8080:8080 - environment: - DATABASE_URL: mysql://root:whalehello@db:3306/mysql - RUST_BACKTRACE: full - restart: unless-stopped - runtime: io.containerd.wasmedge.v1 - - db: - image: mariadb:10.9 - environment: - MYSQL_ROOT_PASSWORD: whalehello diff --git a/wasmedge-mysql-nginx/README.md b/wasmedge-mysql-nginx/README.md index 7396c6a..d325965 100644 --- a/wasmedge-mysql-nginx/README.md +++ b/wasmedge-mysql-nginx/README.md @@ -4,13 +4,6 @@ This sample demonstrates a web application with a WebAssembly (Wasm) microservice, written in Rust. The Wasm microservice is an HTTP API connected to a MySQL (MariaDB) database. The API is invoked via from JavaScript in a web interface serving static HTML. The microservice is compiled into WebAssembly (Wasm) and runs in the WasmEdge Runtime, a secure and lightweight alternative to natively compiled Rust apps in Linux containers. Checkout [this article](https://blog.logrocket.com/rust-microservices-server-side-webassembly/) or [this video](https://www.youtube.com/watch?v=VSqMPFr7SEs) to learn how the Rust code in this microservice works. -## Use with Docker Development Environments - -You will need a version of Docker Desktop or Docker CLI with Wasm support. - -* [Install Docker Desktop + Wasm (Beta)](https://docs.docker.com/desktop/wasm/) -* [Install Docker CLI + Wasm](https://github.com/chris-crone/wasm-day-na-22/tree/main/server) - ## WasmEdge server with Nginx proxy and MySQL database Project structure: