-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
52 lines (50 loc) · 1.11 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
52
name: flashlight-basic-example
services:
prestashop:
image: prestashop/prestashop-flashlight:latest
depends_on:
mysql:
condition: service_healthy
environment:
- PS_DOMAIN=localhost:8000
# - DEBUG_MODE=true
ports:
- 8000:80
expose:
- 80
mysql:
image: mariadb:lts
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect"]
interval: 10s
timeout: 10s
retries: 5
environment:
- MYSQL_HOST=mysql
- MYSQL_USER=prestashop
- MYSQL_PASSWORD=prestashop
- MYSQL_ROOT_PASSWORD=prestashop
- MYSQL_PORT=3306
- MYSQL_DATABASE=prestashop
expose:
- 3306
phpmyadmin:
image: phpmyadmin:latest
depends_on:
mysql:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-Isf", "http://localhost/robots.txt"]
interval: 30s
timeout: 10s
retries: 5
environment:
- PMA_HOST=mysql
- PMA_PORT=3306
- PMA_USER=prestashop
- PMA_PASSWORD=prestashop
- MYSQL_ROOT_PASSWORD=prestashop
ports:
- 6060:80
expose:
- 80