-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.local.yml
61 lines (61 loc) · 1.64 KB
/
docker-compose.local.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: "3.0"
services:
mysql:
image: mysql:latest
container_name: mysql
ports:
- "3310:3306"
volumes:
- "./docker/.data/db/mysql:/var/lib/mysql"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
volumes:
- "./docker/.data/cache/redis:/data"
mailhog:
image: mailhog/mailhog
container_name: mailhog
ports:
- "1025:1025"
- "8025:8025"
volumes:
- "./docker/.data/mail/mailhog:/data/mailhog"
php:
image: "$BACKEND_IMAGE"
container_name: php
build:
context: './'
dockerfile: 'docker/php/Dockerfile'
volumes:
- ./:/app
depends_on:
- mysql
- redis
- mailhog
nginx:
image: "$FRONTEND_IMAGE"
container_name: nginx
#env_file: ./docker/nginx/.env
build:
context: './'
dockerfile: 'docker/nginx/Dockerfile.local'
ports:
- 80:80
volumes:
- ./public:/app/public
- ./storage/app/public:/app/public/storage
- ./docker/nginx/config/default.local.conf:/etc/nginx/sites-enabled/default.conf
- ./docker/nginx/config/nginx.local.conf:/etc/nginx/nginx.conf
- ./docker/nginx/config/custom.conf:/etc/nginx/conf.d/custom.conf
- ./docker/nginx/config/conf.d/mapping.conf:/etc/nginx/conf.d/mapping.conf
- ./docker/nginx/config/conf.d/buffer.conf:/etc/nginx/conf.d/buffer.conf
- ./docker/nginx/config/conf.d/timeouts.conf:/etc/nginx/conf.d/timeouts.conf
depends_on:
- php