-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathdocker-compose-example.yml
34 lines (30 loc) · 1.04 KB
/
docker-compose-example.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
version: '3'
services:
web:
build: ./
# During development we map local files into the container
volumes:
# Map current working copy into the container
- ./:/var/www/html/
# Uncomment to use dev specific PHP settings
#- ./config/php/local.ini:/etc/php7/conf.d/99-local.ini
# Uncomment to use the local vendor directory, e.g. for debugging.
# This requires that you have copied the directory to your host with
# docker-compose run --rm web cp -ra /var/www/vendor .
#- ./vendor:/var/www/vendor
links:
- db
environment:
# Make sure to tweak this in production
PHP_FPM_MAX_CHILDREN: 5
# Enable periodic jobs (see config/crontabs)
#ENABLE_CROND: 1
ports:
- "8080:80"
db:
image: mysql:5
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: web
MYSQL_USER: web
MYSQL_PASSWORD: web