Skip to content

Commit 1b3e853

Browse files
add custom service to docker (use an external Dockerfile)
1 parent ebcc043 commit 1b3e853

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

local/bin/shell_custom.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
docker-compose run --rm custom "$@"

local/docker-compose.yml

+36
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,42 @@ services:
255255
# app_net:
256256
# ipv4_address: ${IP_NOCODB_SERVICE}
257257

258+
# ------------------------------------------------------------
259+
# Custom Service
260+
# ------------------------------------------------------------
261+
# custom:
262+
# container_name: ${COMPOSE_PROJECT_NAME}_custom
263+
# build:
264+
# dockerfile: ./images/custom/Dockerfile
265+
# context: .
266+
#
267+
# volumes:
268+
# # ---- Format: ----
269+
# # HOST-DIRECTORY : DOCKER-DIRECTORY
270+
#
271+
# # mount web folder
272+
# - ${HOST_PATH_WEB_WWW}:/var/www/html/project
273+
# - ${DEVBOX_PATH}/:/var/www/html/docker
274+
#
275+
# # ssh config
276+
# - ${DEVBOX_PATH}/config/ssh/:/var/www/.ssh/
277+
#
278+
# # extra volume
279+
# - ${HOST_PATH_WEB_EXTRA_STORAGE}:/mnt/
280+
#
281+
# # home user folder
282+
# - ~/:/home/user
283+
# # - ~/:/home/<user>
284+
#
285+
# # working_dir: /var/www/html/project
286+
#
287+
# networks:
288+
# app_net:
289+
# ipv4_address: ${IP_CUSTOM_SERVICE}
290+
#
291+
# extra_hosts:
292+
# - ${PROJECT_HOSTNAME}:${IP_CUSTOM_SERVICE}
293+
258294
################################################################################
259295
# NETWORK
260296
################################################################################

local/images/custom/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# FROM debian:bullseye

0 commit comments

Comments
 (0)