-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (56 loc) · 1.53 KB
/
docker-compose.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
services:
nginx:
image: nginx:stable-alpine
ports:
- '8080:80'
volumes:
- './public:/var/www/html/public'
- './.docker/config/nginx.conf:/etc/nginx/conf.d/default.conf'
depends_on:
- fpm
fpm:
build:
context: .docker/
dockerfile: php.Dockerfile
target: fpm
volumes:
- './:/var/www/html'
depends_on:
- mysql
extra_hosts:
- host.docker.internal:host-gateway
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root
command: '--sql-mode NO_ENGINE_SUBSTITUTION'
platform: linux/x86_64
volumes:
- ./var/mysql_data:/var/lib/mysql:delegated
ports:
- '3306:3306'
ulimits:
nproc: 65535
nofile:
soft: 26677
hard: 46677
# Helper services to run scripts
php:
build:
context: .docker/
dockerfile: php.Dockerfile
target: cli
working_dir: /var/www/html
volumes:
- './:/var/www/html'
composer:
image: composer:latest
working_dir: /var/www/html
volumes:
- './:/var/www/html'
- './.docker/entrypoint.sh:/pp-entrypoint.sh'
entrypoint: ['/pp-entrypoint.sh']
command: ['composer']
profiles: ['composer']
# We don't use named volumes because they're very slow on MacOS
volumes: {}