Skip to content

Commit

Permalink
Implemented monorepo docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
DeanAyalon committed May 6, 2024
1 parent 0ed9e46 commit 176cd83
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Environment
*.env
!template.env
26 changes: 15 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# name: dean
# services:
# nginx:
# # USES .ENV FROM THE MAIN DIR PATH, NOT NGINX
# extends:
# file: ./nginx/docker-compose.yml
# service: nginx
# verdaccio:
# extends:
# file: ./verdaccio/docker-compose.yml
# service: verdaccio
# USES .ENV FROM THE MAIN DIR PATH, NOT NGINX
services:
nginx:
extends:
file: ./nginx/docker-compose.yml
service: nginx

verdaccio-live:
extends:
file: ./verdaccio/docker-compose.yml
service: verdaccio-live
verdaccio-dev:
extends:
file: ./verdaccio/docker-compose.yml
service: verdaccio-dev

# ## ONLY USES .ENV FROM THE FIRST PATH
# # include:
Expand Down
37 changes: 37 additions & 0 deletions template.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# ==================================================
# NGINX
# ==================================================

CERTS=~/Documents/.certs/deanayalon.com
HTTP_PORT=


# ==================================================
# VERDACCIO
# ==================================================

VERDACCIO_ENV=0.9

# ! DEV VARIABLES WILL DEFAULT TO LIVE VALUES IF LEFT EMPTY
# Defining different values will allow the dev container to run on the same machine without disturbing the live production server

# The domain on which the service will be hosted
VERDACCIO_DOMAIN=
VERDACCIO_DEV_DOMAIN=

# Mount paths
## Will store users and packages
VERDACCIO_STORAGE=
VERDACCIO_DEV_STORAGE=
## SSL certificates for HTTPS
VERDACCIO_CERTS=
VERDACCIO_DEV_CERTS=

# Port mapping - Default: 4873
VERDACCIO_PORT=4873
VERDACCIO_DEV_PORT=

# If using a proxy, define the port for the healthcheck to use
# If no value is defined, the verdaccio port is used as a default value. (live/dev, respectively)
VERDACCIO_PROXY_PORT=443
## The container healthcheck sends a request to https://DOMAIN:PROXY_PORT
2 changes: 1 addition & 1 deletion verdaccio

0 comments on commit 176cd83

Please sign in to comment.