-
Notifications
You must be signed in to change notification settings - Fork 8
/
compose.yml
64 lines (61 loc) · 1.51 KB
/
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
version: '3'
services:
mysql:
image: mysql:9.0
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: prestashop
expose:
- 3306
ports:
- 3307:3306
volumes:
- db_data:/var/lib/mysql
healthcheck:
test:
[
"CMD",
"mysqladmin",
"ping",
"-p$$MYSQL_ROOT_PASSWORD"
]
timeout: 1s
interval: 2s
retries: 10
prestashop:
build:
context: .
args:
# We are not using version 8.x for now, as this will install with PHP 8.x.
# This will then require a PHPUnit version that will be too high, requiring
# updating prestashop/autoindex.
PLATFORM_VERSION: 1.7.8.7
environment:
DB_SERVER: mysql
DB_NAME: prestashop
DB_USER: root
DB_PASSWD: admin
PS_DEV_MODE: 1
PS_INSTALL_AUTO: 1
PS_ERASE_DB: 1
PS_INSTALL_DB: 1
PS_DOMAIN: localhost:8080
PS_SHOP_URL: localhost:8080
PS_COUNTRY: EN
PS_LANGUAGE: en
PS_FOLDER_ADMIN: almin
PS_FOLDER_INSTALL: alminstall
ADMIN_MAIL: [email protected]
ADMIN_PASSWD: test2test
depends_on:
mysql:
condition: service_healthy
ports:
- "8080:80"
# platform: linux/x86_64
volumes:
- ./alma:/var/www/html/modules/alma
- /var/www/html/modules/alma/vendor # do not mount vendor inside container
- ./docker/php-customization.ini:/usr/local/etc/php/conf.d/php-customization.ini
volumes:
db_data: