-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (74 loc) · 2.94 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
################################################################################
#
# 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 <[email protected]>
#
################################################################################
################################################################################
# Docker Compose File
#
# This Docker File intend to Create a Complete Dev Environment
# for Splash Modules
#
# 172.115.0.100 toolkit.shopify.local
#
################################################################################
services:
################################################################################
# Splash Toolkit Container
shopify:
image: 'splashsync/toolkit:alpine'
container_name: toolkit.shopify.local
volumes:
# Specify Local Configuration Files
- ./.env:/app/.env:ro
- ./config/packages/splash.yaml:/app/config/packages/splash.yaml:ro
# Uncomment to use Local Sources instead of Release
- ./src/:/app/vendor/splash/shopify/src/:ro
- ./tests/:/app/vendor/splash/shopify/tests/:ro
- ./vendor/slince/shopify-api-php/:/app/vendor/slince/shopify-api-php/:ro
hostname: toolkit.shopify.local
networks:
shopify: { ipv4_address: 172.115.0.100, aliases: [ toolkit.shopify.local ] }
splashsync: { aliases: [ toolkit.shopify.local ] }
################################################################################
# PHP 8.2
php-8.2:
image: registry.gitlab.com/badpixxel-projects/php-sdk:php-8.2
container_name: php-8.2.shopify.local
volumes:
- ./:/var/www/html
- vendor-php82:/var/www/html/vendor
################################################################################
# PHP 8.1
php-8.1:
image: registry.gitlab.com/badpixxel-projects/php-sdk:php-8.1
container_name: php-8.1.shopify.local
volumes:
- ./:/var/www/html
- vendor-php81:/var/www/html/vendor
networks:
################################################################################
# Default Private Network
shopify:
driver: bridge
ipam:
config:
- subnet: 172.115.0.0/24
################################################################################
# External Splash Network
splashsync:
external: true
volumes:
vendor-php82: ~
vendor-php81: ~