-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
105 lines (96 loc) · 3.7 KB
/
Copy pathdocker-compose.yml
File metadata and controls
105 lines (96 loc) · 3.7 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
100
101
102
103
104
105
################################################################################
#
# This file is part of SplashSync Project.
#
# Copyright (C) Splash Sync <www.splashsync.com>
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @author Bernard Paquier <contact@splashsync.com>
#
################################################################################
################################################################################
# Docker Compose File
#
# This Docker File intend to Create a Complete Dev Environment
# for Splash Modules on Prestashop
#
# To us different PS Version configured, you need to add hosts to /etc/hosts
#
# 172.102.0.10 latest.prestashop.local
# 172.102.0.20 nginx.prestashop.local
# 172.102.0.16 ps1-6.prestashop.local
# 172.102.0.17 ps1-7.prestashop.local
# 172.102.0.80 ps8-0.prestashop.local
# 172.102.0.81 ps8-1.prestashop.local
# 172.102.0.82 ps8-2.prestashop.local
# 172.102.0.90 ps9-0.prestashop.local
# 172.102.0.100 toolkit.prestashop.local
# 172.102.0.200 phpmyadmin.prestashop.local
#
################################################################################
name: "splash-prestashop"
################################################################################
# App Containers
include:
- docker/versions/prestashop-9.0.yml
- docker/versions/prestashop-8.2.yml
- docker/versions/prestashop-8.1.yml
- docker/versions/prestashop-8.0.yml
- docker/versions/prestashop-1.7.yml
services:
################################################################################
# MySQL Container
mysql:
image: mysql:5.7
container_name: mysql.prestashop.local
environment:
- "MYSQL_ROOT_PASSWORD=admin"
- "MYSQL_DATABASE=prestashop"
logging: { driver: "none" }
networks:
- prestashop
################################################################################
# Splash Toolkit Container
toolkit:
image: 'splashsync/toolkit:3.0'
container_name: toolkit.prestashop.local
volumes:
# Specify Local Configuration File
- './docker/toolkit/splash.yaml:/app/config/packages/splash.yaml:ro'
hostname: toolkit.wordpress.local
networks:
prestashop: { ipv4_address: 172.102.0.100, aliases: [ toolkit.prestashop.local ] }
splashsync: { aliases: [ toolkit.prestashop.local ] }
################################################################################
# PhpMyAdmin Container
phpmyadmin:
image: phpmyadmin/phpmyadmin:5
container_name: phpmyadmin.prestashop.local
logging: { driver: "none" }
depends_on:
- mysql
environment:
- PMA_HOST=mysql
- MYSQL_USER=admin
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_PASSWORD=admin
networks:
prestashop: { ipv4_address: 172.102.0.200, aliases: [ phpmyadmin.prestashop.local ] }
networks:
################################################################################
# Default Private Network
prestashop:
driver: bridge
ipam:
config:
- subnet: 172.102.0.0/24
################################################################################
# External Splash Network
splashsync:
external: true