Skip to content

Commit

Permalink
add custom service to docker (use an external Dockerfile)
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppemorelli committed Sep 15, 2023
1 parent ebcc043 commit 1b3e853
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
3 changes: 3 additions & 0 deletions local/bin/shell_custom.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

docker-compose run --rm custom "$@"
36 changes: 36 additions & 0 deletions local/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,42 @@ services:
# app_net:
# ipv4_address: ${IP_NOCODB_SERVICE}

# ------------------------------------------------------------
# Custom Service
# ------------------------------------------------------------
# custom:
# container_name: ${COMPOSE_PROJECT_NAME}_custom
# build:
# dockerfile: ./images/custom/Dockerfile
# context: .
#
# volumes:
# # ---- Format: ----
# # HOST-DIRECTORY : DOCKER-DIRECTORY
#
# # mount web folder
# - ${HOST_PATH_WEB_WWW}:/var/www/html/project
# - ${DEVBOX_PATH}/:/var/www/html/docker
#
# # ssh config
# - ${DEVBOX_PATH}/config/ssh/:/var/www/.ssh/
#
# # extra volume
# - ${HOST_PATH_WEB_EXTRA_STORAGE}:/mnt/
#
# # home user folder
# - ~/:/home/user
# # - ~/:/home/<user>
#
# # working_dir: /var/www/html/project
#
# networks:
# app_net:
# ipv4_address: ${IP_CUSTOM_SERVICE}
#
# extra_hosts:
# - ${PROJECT_HOSTNAME}:${IP_CUSTOM_SERVICE}

################################################################################
# NETWORK
################################################################################
Expand Down
1 change: 1 addition & 0 deletions local/images/custom/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# FROM debian:bullseye

0 comments on commit 1b3e853

Please sign in to comment.