Also rename docker-compose.yml to compose.yaml
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
30f613f1a9
commit
40ba972d9b
@ -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:
|
||||||
|
@ -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:
|
||||||
|
@ -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:
|
||||||
|
@ -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
|
||||||
|
@ -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)...
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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'
|
||||||
|
@ -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:
|
||||||
|
@ -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
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
Project structure:
|
Project structure:
|
||||||
|
|
||||||
```
|
```
|
||||||
├── docker compose.yml
|
├── compose.yaml
|
||||||
├── Dockerfile
|
├── Dockerfile
|
||||||
├── .dockerignore
|
├── .dockerignore
|
||||||
├── .nginx
|
├── .nginx
|
||||||
|
@ -7,7 +7,7 @@ Project structure:
|
|||||||
├── backend
|
├── backend
|
||||||
│ ├── Dockerfile
|
│ ├── Dockerfile
|
||||||
│ └── main.go
|
│ └── main.go
|
||||||
├── docker compose.yml
|
├── compose.yaml
|
||||||
└── README.md
|
└── README.md
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user