-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.dist
65 lines (61 loc) · 1.39 KB
/
docker-compose.yml.dist
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
version: "2"
services:
php:
image: "jpcandioti/magento2-multisite:latest"
ports:
- "80:80"
- "443:443"
expose:
- 80
- 443
depends_on:
- mysql
volumes:
- "./letsencrypt:/etc/letsencrypt"
- "./httpd/sites-available:/etc/apache2/sites-available"
- "./httpd/sites-enabled:/etc/apache2/sites-enabled"
- "./php/php.ini:/usr/local/etc/php/php.ini"
- "./sites:/var/www/magento2"
environment:
- XDEBUG_CONFIG=remote_host=10.10.0.1
- PHP_IDE_CONFIG=serverName=magento2
networks:
m2_net:
ipv4_address: 10.10.0.2
mysql:
image: "mysql/mysql-server:5.7"
expose:
- 3306
volumes:
- "./mysql_db_files:/var/lib/mysql"
environment:
- MYSQL_ROOT_PASSWORD=secretpass
- MYSQL_ROOT_HOST=10.10.%
networks:
m2_net:
ipv4_address: 10.10.0.3
# varnish:
# image: eeacms/varnish
# expose:
# - 80
# - 6085
# depends_on:
# - php
# environment:
# BACKENDS: "php"
# BACKENDS_PORT: 80
# DNS_ENABLED: "true"
# BACKENDS_PROBE_INTERVAL: "3s"
# BACKENDS_PROBE_TIMEOUT: "1s"
# BACKENDS_PROBE_WINDOW: "3"
# BACKENDS_PROBE_THRESHOLD: "2"
# networks:
# m2_net:
# ipv4_address: 10.10.0.4
networks:
m2_net:
driver: bridge
ipam:
config:
- subnet: 10.10.0.0/16
gateway: 10.10.0.1