forked from PrestaShop/prestashop-flashlight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (60 loc) · 1.38 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
53
54
55
56
57
58
59
60
61
62
63
name: tunnel1
services:
prestashop:
image: prestashop/prestashop-flashlight:latest
depends_on:
mysql:
condition: service_healthy
ngrok:
condition: service_started
environment:
- NGROK_TUNNEL_AUTO_DETECT=http://ngrok:4040
ports:
- 8000: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
ngrok:
image: ngrok/ngrok:latest
env_file:
- .env
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:4040 || exit 1"]
interval: 10s
timeout: 2s
start_period: 10s
volumes:
- ./ngrok.yml:/var/lib/ngrok/ngrok.yml
expose:
- 4040
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