-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
executable file
·89 lines (81 loc) · 2.18 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#Project version = 1.0
version: '2.2'
services:
web:
image: webjump/nginx:alpine
env_file:
- ./config.env
ports:
- 80:80
- 443:443
volumes:
- ./logs/nginx:/var/log/nginx
- ./config/nginx:/etc/nginx
- ./web:/var/www/html
depends_on:
- php
command: sh -c "envsubst '$$PROJECT_ROOT $$NGINX_PORT $$NGINX_SERVER_NAME' < /etc/nginx/sites/project.conf.template > /etc/nginx/sites/project.conf && nginx -g 'daemon off;'"
networks:
- front
- back
php:
image: webjump/php:latest
env_file:
- ./config.env
volumes:
- ./logs/php:/var/log/php
- ./logs/php/xdebug/:/var/log/php
- ./config/magento/php.ini.sample:/usr/local/etc/php/php.ini
- ./config/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./config/php/conf.d/php.ini:/usr/local/etc/php/conf.d/docker-php-ext-error.ini
- ./config/php/fpm/www.conf:/usr/local/etc/php-fpm.d/www.conf
- ./config/php/bin/magento:/usr/local/bin/magento
- ./web:/var/www/html
depends_on:
- database
- cache
- session
user: www-data
networks:
- back
database:
image: percona:5.7.19
working_dir: /dump
env_file:
- ./config.env
ports:
- 3306:3306
volumes:
- database_data:/var/lib/mysql
- ./dump:/dump
networks:
- back
cache:
image: redis:alpine
env_file:
- ./config.env
networks:
- back
session:
image: redis:alpine
env_file:
- ./config.env
networks:
- back
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
env_file:
- ./config.env
ports:
- 8080:80
networks:
- front
- back
networks:
front:
driver: bridge
back:
driver: bridge
volumes:
database_data:
driver: local