-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
87 lines (82 loc) · 1.86 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
services:
prestashop:
image: prestashop/prestashop:${DOCKER_PRESTASHOP_VERSION:-8.0.0-apache}
env_file:
- ./prestashop/prestashop.env
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:80 || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 1m
volumes:
- ./prestashop/ps_scripts:/ps_scripts:ro
- ./ps-modules:/ps-modules:rw
command: /ps_scripts/docker_startup.sh
depends_on:
- prestashop-mysql
- prestashop-ngrok
networks:
prestashop:
ports:
- ${EXT_PORT_PRESTASHOP:-8000}:80
prestashop-ngrok:
image: ngrok/ngrok:${DOCKER_NGROK_VERSION:-alpine}
environment:
- NGROK_CONFIG=/etc/ngrok.yml
- NGROK_TOKEN=$NGROK_TOKEN
volumes:
- ./ngrok/ngrok.yml:/etc/ngrok.yml:ro
entrypoint:
[
"/bin/sh",
"-c",
"ngrok start --authtoken $NGROK_TOKEN --config /etc/ngrok.yml --all",
]
networks:
prestashop:
aliases:
- ngrok
ports:
- 4040:4040
prestashop-mysql:
image: mariadb:${DOCKER_MARIADB_VERSION:-10.8}
env_file:
- ./mysql/mysql.env
healthcheck:
test:
[
"CMD",
"mysqladmin",
"ping",
"--host=localhost",
"--user=root",
"--password=${MARIADB_ROOT_PASSWORD:-prestashop}",
]
interval: 5s
timeout: 10s
retries: 5
start_period: 5s
networks:
prestashop:
aliases:
- mysql
expose:
- 3306
prestashop-phpmyadmin:
image: phpmyadmin:latest
env_file:
- ./phpmyadmin/phpmyadmin.env
depends_on:
- prestashop-mysql
networks:
prestashop:
aliases:
- phpmyadmin
ports:
- ${EXT_PORT_PHPMYADMIN:-8888}:80
networks:
prestashop:
volumes:
ps-modules:
driver: local