forked from PrestaShop/autoupgrade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (49 loc) · 1.37 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
46
47
48
49
50
51
version: '2.1'
volumes:
db-data:
vendor:
var:
temp-ps:
services:
mysql:
image: mysql:5.7
ports:
- "3306"
volumes:
- db-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: psreference
restart: always
reference-release:
container_name: prestashop_autoupgrade
build:
context: .
dockerfile: ./.github/Dockerfile
args:
VERSION: $VERSION
BASE_VERSION: $BASE_VERSION
volumes:
- ./:/var/www/html/modules/autoupgrade
- temp-ps:/var/www/html # Used for another container which needs PrestaShop content
environment:
DISABLE_MAKE: 0
PS_INSTALL_AUTO: ${PS_INSTALL_AUTO:-1}
DB_SERVER: mysql
DB_PASSWD: root
DB_NAME: psreference
PS_DOMAIN: localhost:8001
PS_INSTALL_DB: 1
PS_ERASE_DB: 1
PS_FOLDER_ADMIN: admin-dev
PS_FOLDER_INSTALL: install-dev
PS_LANGUAGE: en
PS_COUNTRY: fr
PS_DEV_MODE: 0
# We must wait the database for the initialization and/or clear steps, because the waiting phase is conditioned by the variable PS_INSTALL_AUTO
# https://github.com/PrestaShop/docker/blob/master/base/config_files/docker_run.sh#L7
command: sh -c 'while ! mysql -hmysql -uroot -proot -e "status"; do sleep 1; done && /tmp/docker_run.sh'
depends_on:
- mysql
ports:
- '8001:80'