Skip to content

Commit

Permalink
Give docker containers static IPs
Browse files Browse the repository at this point in the history
  • Loading branch information
forgetso committed Nov 12, 2024
1 parent e3d1232 commit e53c5af
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions docker/docker-compose.provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ services:
ports:
- '9229:9229'
networks:
- internal
- external
internal:
ipv4_address: 172.18.0.2
logging:
driver: 'json-file'
options:
Expand Down Expand Up @@ -40,8 +40,8 @@ services:
ports:
- '9229:9229'
networks:
- internal
- external
internal:
ipv4_address: 172.18.0.3
logging:
driver: 'json-file'
options:
Expand All @@ -65,7 +65,8 @@ services:
env_file:
- ../dev/scripts/.env.development
networks:
- internal
internal:
ipv4_address: 172.18.0.4
logging:
driver: 'json-file'
options:
Expand Down Expand Up @@ -94,7 +95,8 @@ services:
env_file:
- ../.env.${NODE_ENV}
networks:
- internal
internal:
ipv4_address: 172.18.0.5
logging:
driver: 'json-file'
options:
Expand Down Expand Up @@ -127,7 +129,9 @@ services:
- caddy_data:/data
- caddy_config:/config
networks:
- external
external:
internal:
ipv4_address: 172.18.0.6
logging:
driver: 'json-file'
options:
Expand Down Expand Up @@ -190,6 +194,11 @@ networks:
internal:
name: internal
internal: true
driver: bridge
ipam:
config:
- subnet: 172.18.0.0/16
gateway: 172.18.0.1
external:
name: external
volumes:
Expand Down

0 comments on commit e53c5af

Please sign in to comment.