Also rename docker-compose.yml to compose.yaml

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2022-05-10 11:48:03 +02:00
parent 30f613f1a9
commit 40ba972d9b
No known key found for this signature in database
GPG Key ID: 9858809D6F8F6E7E
23 changed files with 17 additions and 17 deletions

View File

@ -4,7 +4,7 @@
Project structure: Project structure:
``` ```
. .
├── docker compose.yml ├── compose.yaml
├── app ├── app
   ├── Dockerfile    ├── Dockerfile
   ├── requirements.txt    ├── requirements.txt
@ -12,7 +12,7 @@ Project structure:
``` ```
[_docker-compose.yml_](docker-compose.yml) [_compose.yaml_](compose.yaml)
``` ```
services: services:
web: web:

View File

@ -4,10 +4,10 @@
Project structure: Project structure:
``` ```
. .
└── docker compose.yml └── compose.yaml
``` ```
[_docker-compose.yml_](docker-compose.yml) [_compose.yaml_](compose.yaml)
``` ```
services: services:
elasticsearch: elasticsearch:

View File

@ -9,11 +9,11 @@ Project structure:
├── Dockerfile ├── Dockerfile
├── README.md ├── README.md
├── app.py ├── app.py
├── docker compose.yml ├── compose.yaml
└── requirements.txt └── requirements.txt
``` ```
[_docker-compose.yml_](docker-compose.yml) [_compose.yaml_](compose.yaml)
``` ```
services: services:

View File

@ -29,7 +29,7 @@ the same port of the host as specified in the compose file.
## Deploy with docker compose ## Deploy with docker compose
``` ```
$ docker$ compose up -d $ docker compose up -d
Creating network "gitea-postgres_default" with the default driver Creating network "gitea-postgres_default" with the default driver
Creating gitea-postgres_db_1 ... done Creating gitea-postgres_db_1 ... done
Creating gitea-postgres_gitea_1 ... done Creating gitea-postgres_gitea_1 ... done

View File

@ -30,7 +30,7 @@ port 80 of the host as specified in the compose file.
## Deploy with docker compose ## Deploy with docker compose
``` ```
$ docker$ compose up -d $ docker compose up -d
Creating network "nextcloud-postgres_default" with the default driver Creating network "nextcloud-postgres_default" with the default driver
Creating volume "nextcloud-postgres_nc_data" with default driver Creating volume "nextcloud-postgres_nc_data" with default driver
Pulling nc (nextcloud:apache)... Pulling nc (nextcloud:apache)...

View File

@ -35,7 +35,7 @@ port 80 of the host as specified in the compose file.
## Deploy with docker compose ## Deploy with docker compose
``` ```
$ docker$ compose up -d $ docker compose up -d
Creating network "nextcloud-redis-mariadb_redisnet" with the default driver Creating network "nextcloud-redis-mariadb_redisnet" with the default driver
Creating network "nextcloud-redis-mariadb_dbnet" with the default driver Creating network "nextcloud-redis-mariadb_dbnet" with the default driver
Creating volume "nextcloud-redis-mariadb_nc_data" with default driver Creating volume "nextcloud-redis-mariadb_nc_data" with default driver

View File

@ -7,7 +7,7 @@ Project structure:
├── backend ├── backend
│   ├── Dockerfile │   ├── Dockerfile
│   └── main.go │   └── main.go
├── docker compose.yml ├── compose.yaml
├── frontend ├── frontend
│   ├── Dockerfile │   ├── Dockerfile
│   └── nginx.conf │   └── nginx.conf

View File

@ -6,7 +6,7 @@ Project structure:
``` ```
. .
├── README.md ├── README.md
├── docker compose.yml ├── compose.yaml
├── nginx ├── nginx
│   ├── Dockerfile │   ├── Dockerfile
│   └── nginx.conf │   └── nginx.conf
@ -19,7 +19,7 @@ Project structure:
``` ```
[_docker-compose.yml_](docker-compose.yml) [_compose.yaml_](compose.yaml)
``` ```
redis: redis:
image: 'redislabs/redismod' image: 'redislabs/redismod'

View File

@ -4,7 +4,7 @@
Project structure: Project structure:
``` ```
. .
├── docker compose.yml ├── compose.yaml
├── grafana ├── grafana
│   └── datasource.yml │   └── datasource.yml
├── prometheus ├── prometheus
@ -12,7 +12,7 @@ Project structure:
└── README.md └── README.md
``` ```
[_docker-compose.yml_](docker-compose.yml) [_compose.yaml_](compose.yaml)
``` ```
services: services:
prometheus: prometheus:

View File

@ -30,7 +30,7 @@
- You want to use Docker for local development (i.e. never need to install node/npm on host) and have dev and prod Docker images be as close as possible. - You want to use Docker for local development (i.e. never need to install node/npm on host) and have dev and prod Docker images be as close as possible.
- You don't want to loose fidelity in your dev workflow. You want a easy environment setup, using local editors, node debug/inspect, local code repo, while node server runs in a container. - You don't want to loose fidelity in your dev workflow. You want a easy environment setup, using local editors, node debug/inspect, local code repo, while node server runs in a container.
- You use `docker-compose` for local development only (docker-compose was never intended to be a production deployment tool anyway). - You use `docker-compose` for local development only (docker-compose was never intended to be a production deployment tool anyway).
- The `docker-compose.yml` is not meant for `docker stack deploy` in Docker Swarm, it's meant for happy local development. Use `docker-stack.yml` for Swarm. - The `compose.yaml` is not meant for `docker stack deploy` in Docker Swarm, it's meant for happy local development. Use `docker-stack.yml` for Swarm.
### Getting Started ### Getting Started

View File

@ -5,7 +5,7 @@
Project structure: Project structure:
``` ```
├── docker compose.yml ├── compose.yaml
├── Dockerfile ├── Dockerfile
├── .dockerignore ├── .dockerignore
├── .nginx ├── .nginx

View File

@ -7,7 +7,7 @@ Project structure:
├── backend ├── backend
│   ├── Dockerfile │   ├── Dockerfile
│   └── main.go │   └── main.go
├── docker compose.yml ├── compose.yaml
└── README.md └── README.md
``` ```