Skip to content

Commit

Permalink
added static IPs to be able always connect via vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
msalakhov-smartorange committed Mar 23, 2022
1 parent 5ec398d commit a1557ef
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ services:
- '4306:3306'
volumes:
- ./db:/var/lib/mysql
networks:
default:
ipv4_address: 172.18.0.2
php:
container_name: php
build:
Expand All @@ -25,6 +28,9 @@ services:
- ./app:/var/www/lux:rw
depends_on:
- database
networks:
default:
ipv4_address: 172.18.0.3
nginx:
container_name: nginx
image: nginx:stable-alpine
Expand All @@ -36,11 +42,26 @@ services:
depends_on:
- php
- database
networks:
default:
ipv4_address: 172.18.0.4
redis:
container_name: redis
image: redis:5-alpine
ports: [6379]
networks:
default:
ipv4_address: 172.18.0.5
mailcatcher:
container_name: mailcatcher
image: schickling/mailcatcher
ports: [1025, 1080]
ports: [1025, 1080]
networks:
default:
ipv4_address: 172.18.0.6
networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.18.0.0/16

0 comments on commit a1557ef

Please sign in to comment.