Created
September 23, 2020 01:57
-
-
Save pigfly88/607690f019d534aa36cea53562fb693f to your computer and use it in GitHub Desktop.
docker-compose-set-ip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
cgmid: | |
image: yiisoftware/yii2-php:7.1-apache | |
build: . | |
volumes: | |
- ~/.composer-docker/cache:/root/.composer/cache:delegated | |
- ./:/app:delegated | |
ports: | |
- '8002:80' | |
networks: | |
extnetwork: | |
ipv4_address: 10.2.0.100 | |
networks: | |
extnetwork: | |
ipam: | |
config: | |
- subnet: 10.2.0.0/16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment