Docker for development

This commit is contained in:
2021-06-10 01:08:40 +05:00
parent 1418671967
commit e1418e4db5
6 changed files with 136 additions and 2 deletions

41
docker-compose.yml Normal file
View File

@@ -0,0 +1,41 @@
# For more information: https://laravel.com/docs/sail
version: '3'
services:
karudhaas:
build:
context: ./docker/7.4
dockerfile: Dockerfile
args:
WWWGROUP: '${WWWGROUP}'
image: sail-8.0/app
ports:
- '${APP_PORT:-80}:80'
environment:
WWWUSER: '${WWWUSER}'
LARAVEL_SAIL: 1
volumes:
- '.:/var/www/html'
networks:
- sail
- docker
redis:
image: 'redis:alpine'
ports:
- '${FORWARD_REDIS_PORT:-6379}:6379'
volumes:
- 'sailredis:/data'
networks:
- docker
- sail
networks:
sail:
driver: bridge
docker:
external: true
volumes:
sailmysql:
driver: local
sailredis:
driver: local