Skip to content

Commit

Permalink
🏗️ Explictly define subnet for default compose network
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelien-brabant committed Oct 16, 2023
1 parent 0a47612 commit 429bb39
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker-compose.cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@

version: '3.8'

networks:
# We explicitly define a subnet to avoid unintentional shadowing
default:
ipam:
config:
- subnet: 172.20.0.0/24

services:

cloud-proxy:
Expand Down
7 changes: 7 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ version: '3.8'
volumes:
postgres-data-dev:

networks:
# We explicitly define a subnet to avoid unintentional shadowing
default:
ipam:
config:
- subnet: 172.20.0.0/24

services:

gateway:
Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ version: '3.8'
volumes:
postgres-data:

networks:
# We explicitly define a subnet to avoid unintentional shadowing
default:
ipam:
config:
- subnet: 172.20.0.0/24

services:

gateway:
Expand Down

0 comments on commit 429bb39

Please sign in to comment.