-
-
Save W3SS/06aaef78163cd176eddf5b60e9bb21ce to your computer and use it in GitHub Desktop.
This file contains 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: "3" | |
networks: | |
laravel: | |
services: | |
nginx: | |
build: | |
context: ./dockerfiles | |
dockerfile: nginx.dockerfile | |
args: | |
- UID=${UID:-1000} | |
- GID=${GID:-1000} | |
container_name: nginx_test_app | |
ports: | |
- 82:80 | |
volumes: | |
- ./src:/var/www/html:delegated | |
depends_on: | |
- php | |
- mysql | |
networks: | |
- laravel | |
mysql: | |
image: mysql:5.7.22 | |
container_name: mysql_test_app | |
restart: unless-stopped | |
tty: true | |
ports: | |
- "5306:3306" | |
volumes: | |
- ./mysql:/var/lib/mysql | |
environment: | |
MYSQL_DATABASE: homestead | |
MYSQL_USER: homestead | |
MYSQL_PASSWORD: secret | |
MYSQL_ROOT_PASSWORD: secret | |
networks: | |
- laravel | |
php: | |
container_name: php_test_app | |
build: | |
context: ./dockerfiles | |
dockerfile: php.dockerfile | |
networks: | |
- laravel | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment