Commit 6f00e89 1 parent ac1585d commit 6f00e89 Copy full SHA for 6f00e89
File tree 3 files changed +20
-0
lines changed
lib/supervisor/app/services
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,10 @@ deploy:
187
187
# The Traefik image to use, defaults to traefik:v3.2.1
188
188
image : traefik:v3.2.0
189
189
190
+ # Additional docker container command options
191
+ options :
192
+ publish : 8888:8888
193
+
190
194
# Additional arguments to pass to the Traefik container
191
195
args :
192
196
configfile : /etc/traefik/traefik.yml
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ def build_command
49
49
--volume /var/run/docker.sock:/var/run/docker.sock
50
50
--volume /var/lib/supervisor:/rails/storage
51
51
]
52
+ command += build_options
52
53
command += [ '--network' , network_name ]
53
54
command += build_labels
54
55
command += build_env
@@ -84,6 +85,13 @@ def build_env
84
85
85
86
argumentize ( env , prefix : '--env ' )
86
87
end
88
+
89
+ def build_options
90
+ options = { }
91
+ options . merge! ( @settings . deploy &.supervisor &.options || { } )
92
+
93
+ argumentize ( options , prefix : '--' )
94
+ end
87
95
end
88
96
end
89
97
end
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ def build_command
49
49
--volume /var/lib/traefik:/etc/traefik
50
50
--publish 80:80 --publish 443:443
51
51
]
52
+ command += build_options
52
53
command += [ '--network' , network_name ]
53
54
command += build_env
54
55
command += [ set_image ]
@@ -83,6 +84,13 @@ def build_env
83
84
84
85
argumentize ( env , prefix : '--env ' )
85
86
end
87
+
88
+ def build_options
89
+ options = { }
90
+ options . merge! ( @settings . deploy &.traefik &.options || { } )
91
+
92
+ argumentize ( options , prefix : '--' )
93
+ end
86
94
end
87
95
end
88
96
end
You can’t perform that action at this time.
0 commit comments