-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (37 loc) · 1.01 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
version: '2.4'
services:
redis:
image: redis:3
db:
image: mariadb:10
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
- "MYSQL_ROOT_PASSWORD"
- "MYSQL_DATABASE=app"
volumes:
- /etc/localtime:/etc/localtime:ro
app_base:
build:
context: ./docker/app
args:
- XDEBUG
- CONTAINER_USER
working_dir: /var/www/app
app:
extends: app_base
links:
- redis
- db
volumes:
- /etc/localtime:/etc/localtime:ro
- ./docker/app/app.ini:/usr/local/etc/php/conf.d/app.ini:ro
- ./docker/app/php-fpm.conf:/usr/local/etc/php-fpm.d/zz-php-fpm.conf:ro
- ./:/var/www/app:rw
web:
image: nginx
links:
- app
volumes:
- ./docker/web/app.conf:/etc/nginx/conf.d/app.conf:ro
volumes_from:
- app