-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
45 lines (43 loc) · 1.48 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
version: '3.8'
services:
nginx:
restart: always
build:
context: images/nginx
args:
username: ${USERNAME}
domain: ${DOMAIN}
cert_path: ${CERT_PATH}
cert_key_path: ${CERT_KEY_PATH}
container_name: magento_nginx
volumes:
- ./src:/var/www/html
- ./images/nginx/conf/default.conf:/etc/nginx/conf.d/default.conf
- ./images/nginx/conf/application.conf:/etc/nginx/application.conf
- ${CERT_PATH}:${CERT_PATH}
- ${CERT_KEY_PATH}:${CERT_KEY_PATH}
network_mode: host
php:
restart: always
build:
context: images/php
dockerfile: Dockerfile-${PHP_VERSION}
args:
username: ${USERNAME}
host_os: ${HOST_OS}
domain: ${DOMAIN}
container_name: magento_php
volumes:
- ./src:/var/www/html
- ./sessions:/var/lib/php/sessions
- ./credentials:/home/ubuntu/.composer
# - ./adb-payment:/var/www/html/app/code/MercadoPago/AdbPayment
# Next lines for php7.2
- ./logs/php-fpm-error.log:/var/log/php-fpm/error-php-fpm.log
- ./logs/php-fpm-access.log:/var/log/php-fpm/access-php-fpm.log
network_mode: host
mailhog:
restart: always
image: mailhog/mailhog
container_name: magento_mailhog
network_mode: host