-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (71 loc) · 2.34 KB
/
Copy pathdocker-compose.yml
File metadata and controls
74 lines (71 loc) · 2.34 KB
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
include:
- docker-compose.local.yml
services:
mysql:
container_name: ${MODULE_VERSION}-ps-mysql-${PS_VERSION_TAG}
image: mariadb:10.9.4
ports:
- "3306"
environment:
MYSQL_ROOT_PASSWORD: prestashop
MYSQL_DATABASE: prestashop
restart: always
healthcheck:
test: "mysqladmin ping -h127.0.0.1 -uroot -pprestashop --silent"
interval: 10s
volumes:
- ./mysql/${MODULE_VERSION}-mysql-backup-${PS_VERSION_TAG}:/var/lib/mysql
networks:
- ps-checkout
ps-prestashop:
container_name: ${MODULE_VERSION}-ps-prestashop-${PS_VERSION_TAG}
platform: ${DOCKER_PLATFORM}
deploy:
resources:
limits:
memory: 4096M
build:
context: .
dockerfile: Dockerfile
args:
PS_INSTANCE: ${PS_VERSION_TAG}
MODULE_VERSION: ${MODULE_VERSION}
INSTALL_XDEBUG: ${INSTALL_XDEBUG}
environment:
PS_INSTALL_AUTO: 1
DB_PASSWD: prestashop
DB_NAME: prestashop
DB_SERVER: mysql
PS_DOMAIN: ${PS_DOMAIN}
PS_FOLDER_INSTALL: install
PS_FOLDER_ADMIN: admin1
PS_ENABLE_SSL: ${SSL_ENABLED}
SENTRY_DSN: ${SENTRY_DSN}
depends_on:
- mysql
ports:
- "80"
volumes:
- ./prestashop/${PS_VERSION_TAG}:/var/www/html
- ./${MODULE_VERSION}:/var/www/html/modules/ps_checkout
- ./api:/var/www/html/modules/ps_checkout/vendor/invertus/api
- ./core:/var/www/html/modules/ps_checkout/vendor/invertus/core
- ./infrastructure:/var/www/html/modules/ps_checkout/vendor/invertus/infrastructure
- ./presentation:/var/www/html/modules/ps_checkout/vendor/invertus/presentation
- ./utility:/var/www/html/modules/ps_checkout/vendor/invertus/utility
# Note - restart the docker instance after any changes to xdebug configuration
- ./.docker/php/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./.docker/php/php.ini:/usr/local/etc/php/conf.d/zzz-custom.ini
healthcheck:
test: ['CMD', 'curl', '-f', "localhost:80"]
interval: 10s
start_period: 15s
timeout: 10s
retries: 5
networks:
- ps-checkout
post_start:
- command: composer install --working-dir=/var/www/html/modules/ps_checkout
- command: find /var/www/html/modules/ps_checkout/vendor/bin -type f -exec chmod +x {} \;
networks:
ps-checkout: