-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·144 lines (135 loc) · 5.22 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
################################################################################
#
# 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 on Prestashop
#
# To us different PS Version configured, you need to add hosts to /etc/hosts
#
# 172.169.2.10 py.splashsync.local
#
################################################################################
services:
################################################################################
# Python 3.12 - Splash Py
splashpy-3.12:
build:
context: ./
dockerfile: docker/Dockerfile
args:
image: python:3.12-slim
container_name: 3p12.splashpy.local
volumes:
# Server Sources in Read Only Mode
- "./:/app/"
- "./splashpy:/app/splashpy:ro"
hostname: 3p12.splashpy.local
networks:
pycore: { ipv4_address: 172.169.2.32, aliases: [ 3p12.splashpy.local ] }
splashsync: { aliases: [ 3p12.splashpy.local ] }
################################################################################
# Python 3.10 - Splash Py
splashpy-3.10:
build:
context: ./
dockerfile: docker/Dockerfile
args:
image: python:3.10-slim
container_name: 3p10.splashpy.local
volumes:
# Server Sources in Read Only Mode
- "./:/app/"
- "./splashpy:/app/splashpy:ro"
hostname: 3p10.splashpy.local
networks:
pycore: { ipv4_address: 172.169.2.30, aliases: [ 3p10.splashpy.local ] }
splashsync: { aliases: [ 3p10.splashpy.local ] }
################################################################################
# Python 3.9 - Splash Py
splashpy-3.9:
build:
context: ./
dockerfile: docker/Dockerfile
args:
image: python:3.9-slim
container_name: 3p9.splashpy.local
volumes:
# Server Sources in Read Only Mode
- "./:/app/"
- "./splashpy:/app/splashpy:ro"
hostname: 3p9.splashpy.local
networks:
pycore: { ipv4_address: 172.169.2.39, aliases: [ 3p9.splashpy.local ] }
splashsync: { aliases: [ 3p9.splashpy.local ] }
################################################################################
# Python 3.8 - Splash Py
splashpy-3.8:
build:
context: ./
dockerfile: docker/Dockerfile
args:
image: python:3.8-slim
container_name: 3p8.splashpy.local
volumes:
# Server Sources in Read Only Mode
- "./:/app/"
- "./splashpy:/app/splashpy:ro"
hostname: 3p8.splashpy.local
networks:
pycore: { ipv4_address: 172.169.2.38, aliases: [ 3p8.splashpy.local ] }
splashsync: { aliases: [ 3p8.splashpy.local ] }
################################################################################
# Python 3.7 - Splash Py
splashpy-3.7:
build:
context: ./
dockerfile: docker/Dockerfile
container_name: 3p7.splashpy.local
volumes:
# Server Sources in Read Only Mode
- "./:/app/"
- "./splashpy:/app/splashpy:ro"
hostname: 3p7.splashpy.local
networks:
pycore: { ipv4_address: 172.169.2.37, aliases: [ 3p7.splashpy.local ] }
splashsync: { aliases: [ 3p7.splashpy.local ] }
################################################################################
# Splash Toolkit Container
toolkit:
image: 'splashsync/toolkit'
container_name: toolkit.splashpy.local
volumes:
# Specify Local Configuration File
- './docker/toolkit/splash.yaml:/app/config/packages/splash.yaml:ro'
hostname: toolkit.splashpy.local
networks:
pycore: { ipv4_address: 172.169.2.10, aliases: [ toolkit.splashpy.local ] }
splashsync: { aliases: [ toolkit.splashpy.local ] }
networks:
################################################################################
# Default Private Network
pycore:
driver: bridge
ipam:
config:
- subnet: 172.169.2.0/24
################################################################################
# External Splash Network
splashsync:
external: true