Skip to content

Remove version and default bridge network #1189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions docs/Docker-Compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ The use of named containers and volume is not required but helps keeping everyth
### Two containers example

```yaml
version: "2"

services:
nginx-proxy:
image: nginxproxy/nginx-proxy
Expand All @@ -32,7 +30,6 @@ services:
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
network_mode: bridge

acme-companion:
image: nginxproxy/acme-companion
Expand All @@ -45,7 +42,10 @@ services:
- certs:/etc/nginx/certs:rw
- acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
network_mode: bridge

#networks:
# default:
# name: nginx-proxy

volumes:
# vhost:
Expand All @@ -58,8 +58,6 @@ volumes:
### Three containers example

```yaml
version: "2"

services:
nginx-proxy:
image: nginx:alpine
Expand All @@ -74,7 +72,6 @@ services:
- conf:/etc/nginx/conf.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs:ro
network_mode: bridge

docker-gen:
image: nginxproxy/docker-gen
Expand All @@ -87,7 +84,6 @@ services:
- /var/run/docker.sock:/tmp/docker.sock:ro
labels:
- "com.github.nginx-proxy.docker-gen"
network_mode: bridge

acme-companion:
image: nginxproxy/acme-companion
Expand All @@ -100,7 +96,10 @@ services:
- certs:/etc/nginx/certs:rw
- acme:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:ro
network_mode: bridge

#networks:
# default:
# name: nginx-proxy

volumes:
# vhost:
Expand Down