-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
99 lines (94 loc) · 2.62 KB
/
Copy pathdocker-compose.yml
File metadata and controls
99 lines (94 loc) · 2.62 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Throwaway PrestaShop shops from the official Flashlight images.
#
# One shop and one database per version. Bring up a single shop at a time:
# docker compose up ps92 -d
# Its database starts with it through depends_on.
#
# Tags carry a suffix on purpose. The bare `9.2.0` and `8.2.8` tags do not
# exist on the registry — a previous attempt at this file pinned `9.0.1` and
# could never start.
services:
db17:
image: mariadb:11
environment:
MARIADB_ROOT_PASSWORD: prestashop
MARIADB_DATABASE: prestashop
MARIADB_USER: prestashop
MARIADB_PASSWORD: prestashop
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect"]
interval: 5s
timeout: 5s
retries: 20
ps17:
image: prestashop/prestashop-flashlight:1.7.8.11-nginx
depends_on:
db17:
condition: service_healthy
environment:
PS_DOMAIN: localhost:8017
SECOND_SHOP_PORT: "8018"
MYSQL_HOST: db17
DEBUG_MODE: "false"
POST_SCRIPTS_DIR: /tmp/post-scripts
volumes:
- ./docker/post-scripts:/tmp/post-scripts:ro
ports:
- "8017:80"
- "8018:80" # the second shop
db82:
image: mariadb:11
environment:
MARIADB_ROOT_PASSWORD: prestashop
MARIADB_DATABASE: prestashop
MARIADB_USER: prestashop
MARIADB_PASSWORD: prestashop
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect"]
interval: 5s
timeout: 5s
retries: 20
ps82:
image: prestashop/prestashop-flashlight:8.2.8-nginx
depends_on:
db82:
condition: service_healthy
environment:
PS_DOMAIN: localhost:8082
SECOND_SHOP_PORT: "8083"
MYSQL_HOST: db82
DEBUG_MODE: "false"
POST_SCRIPTS_DIR: /tmp/post-scripts
volumes:
- ./docker/post-scripts:/tmp/post-scripts:ro
ports:
- "8082:80"
- "8083:80" # the second shop
db92:
image: mariadb:11
environment:
MARIADB_ROOT_PASSWORD: prestashop
MARIADB_DATABASE: prestashop
MARIADB_USER: prestashop
MARIADB_PASSWORD: prestashop
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect"]
interval: 5s
timeout: 5s
retries: 20
ps92:
image: prestashop/prestashop-flashlight:9.2.0-nginx
depends_on:
db92:
condition: service_healthy
environment:
PS_DOMAIN: localhost:8092
SECOND_SHOP_PORT: "8093"
MYSQL_HOST: db92
DEBUG_MODE: "false"
POST_SCRIPTS_DIR: /tmp/post-scripts
volumes:
- ./docker/post-scripts:/tmp/post-scripts:ro
ports:
- "8092:80"
- "8093:80" # the second shop, on its own port rather than a virtual URI