forked from theiconic/docker-nginx-akeneo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml.dist
98 lines (90 loc) · 2.66 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: '2'
services:
# MySQL Server
mysql:
image: mysql:5.6
restart: always
container_name: "akeneo_pim_mysql"
environment:
- "MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD"
command: "--max_allowed_packet=1000M --connect_timeout=72"
volumes:
- "mysql_data:/var/lib/mysql"
- "./conf/mysql/:/etc/mysql/conf.d:ro"
ports:
- "${MYSQL_PORT}:3306"
networks:
akeneo_network:
aliases:
- mysql.db
# Akeneo Pim
akeneo:
image: theiconic/akeneo-nginx
container_name: "akeneo_pim_app"
environment:
- "COMPOSER_HOME=/composer"
- "WEBROOT=${WEBROOT}"
- "TZ=${TIME_ZONE}"
volumes:
- "${SOURCE_PATH}:${WEBROOT}"
- "${COMPOSER_HOME}:/composer"
- "./conf/php/php.ini:/usr/local/etc/php/php.ini"
# Edit file and uncomment derivatives to enable xdebug extension
- "./conf/php/xdebug.ini:/usr/local/etc/php/conf.d/20-custom-xdebug.ini:ro"
working_dir: "${WEBROOT}"
user: "$USER_ID"
networks:
akeneo_network:
aliases:
- akeneo.pim
nginx:
image: nginx:alpine
container_name: "akeneo_pim_nginx"
volumes:
- "./conf/nginx/sites-available:/etc/nginx/conf.d/:ro"
ports:
- 80:80
- 443:443
- 8081:8081 # Behat dedicated port
depends_on:
- akeneo
- mysql
volumes_from:
- akeneo:ro
networks:
- akeneo_network
# Uncomment this lines if you need redis service
# # Redis
# redis:
# image: redis:3.0.7-alpine
# restart: always
# container_name: "akeneo_pim_redis"
# networks:
# - akeneo_network
# ********************************
# Uncomment to use Selenium / Behat setup
# selenium:
# image: selenium/standalone-firefox-debug:2.53.1
# ports:
# - 4444:4444
# - 5901:5900
# environment:
# - "no_proxy=localhost"
# container_name: akeneo_pim_selenium
# networks:
# - akeneo_network
# Uncomment this lines if you want Xdebug (Dev)
# X-DEBUG Proxy for remote debugging php-fpm
# dbgpproxy:
# image: theiconic/dbgp-proxy-lite
# restart: always
# container_name: "akeneo_pim_xdebug"
# ports:
# - "9002:9001"
# networks:
# - akeneo_network
volumes:
mysql_data:
driver: local
networks:
akeneo_network: