Skip to content

Instantly share code, notes, and snippets.

@firecentaur
Created June 17, 2022 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save firecentaur/a92726c9ed35ee216cf172b4b63d2311 to your computer and use it in GitHub Desktop.
Save firecentaur/a92726c9ed35ee216cf172b4b63d2311 to your computer and use it in GitHub Desktop.
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