nginx-aspnet-mysql: add dev envs configuration (#267)
* nginx-aspnet-mysql: add dev envs configuration * Fix/enable MySQL/MariaDB health check * Refactor `Dockerfile` for use as Compose app as well as with dev envs * nginx-aspnet-mysql: remove DB healthcheck from dev envs config Signed-off-by: Milas Bowman <milas.bowman@docker.com>
This commit is contained in:
@@ -21,13 +21,14 @@ Project structure:
|
||||
```
|
||||
services:
|
||||
backend:
|
||||
build: backend
|
||||
build:
|
||||
context: backend
|
||||
...
|
||||
db:
|
||||
# We use a mariadb image which supports both amd64 & arm64 architecture
|
||||
image: mariadb:10.6.4-focal
|
||||
image: mariadb:10-focal
|
||||
# If you really want to use MySQL, uncomment the following line
|
||||
#image: mysql:8.0.27
|
||||
#image: mysql:8
|
||||
...
|
||||
proxy:
|
||||
build: proxy
|
||||
@@ -74,3 +75,14 @@ Stop and remove the containers
|
||||
```
|
||||
$ docker compose down
|
||||
```
|
||||
|
||||
## Use with Docker Development Environments
|
||||
|
||||
You can use this sample with the Dev Environments feature of Docker Desktop.
|
||||
|
||||

|
||||
|
||||
To develop directly on the services inside containers, use the HTTPS Git url of the sample:
|
||||
```
|
||||
https://github.com/docker/awesome-compose/tree/master/nginx-aspnet-mysql
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user