-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (36 loc) · 929 Bytes
/
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
version: '3'
services:
php:
build: ./docker/php/
depends_on:
- mysql
environment:
TIMEZONE: Europe/Paris
XDEBUG_REMOTE_HOST: 10.200.10.1
volumes:
- ./docker/php/php.ini:/usr/local/etc/php/php.ini:ro
- ./docker/php/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini:ro
- ./app:/var/www/app
working_dir: /var/www/app
# I am naming the Nginx container as "webserver" so that it can be changed
# to any other web server
webserver:
build: ./docker/nginx/
depends_on:
- php
volumes:
- ./app:/var/www/app
- ./docker/nginx/app.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- 8080:80
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: root_password_test
MYSQL_DATABASE: db_test
MYSQL_USER: user_test
MYSQL_PASSWORD: password_test
ports:
- "3306:3306"
mongodb:
image: mongo:3.4