Skip to content

Instantly share code, notes, and snippets.

@pigfly88
Created September 23, 2020 01:57
Show Gist options
  • Save pigfly88/607690f019d534aa36cea53562fb693f to your computer and use it in GitHub Desktop.
Save pigfly88/607690f019d534aa36cea53562fb693f to your computer and use it in GitHub Desktop.
docker-compose-set-ip
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