Skip to content

Commit

Permalink
Docker compose project name variable interpolation awaiting fix
Browse files Browse the repository at this point in the history
See docker/compose#11787

Added default variable values
  • Loading branch information
DeanAyalon committed May 5, 2024
1 parent cf0ae68 commit 94117ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions defaults.env
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ STORAGE= # Will store users and packages
CERTS= # SSL certificates for HTTPS

# Port mapping - By default, Verdaccio takes up port 4873
# Use 0 for a random port
PORT=4873
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# name: ${PROJECT}
name: ${PROJECT:-verdaccio}
services:
verdaccio:
build:
Expand All @@ -9,13 +9,13 @@ services:
path: ./files
target: /verdaccio
image: ${IMAGE}:${VERSION}
container_name: ${CONTAINER}
container_name: ${CONTAINER:-verdaccio}
environment:
- VERDACCIO_PROTOCOL=https
- DOMAIN=${DOMAIN}
- HOST_PORT=${PORT}
- HOST_PORT=${PORT:-4873}
ports:
- ${PORT}:4873
- ${PORT:-4873}:4873
volumes:
- ${STORAGE}:/verdaccio/storage
- ${CERTS}:/verdaccio/certs:ro

0 comments on commit 94117ea

Please sign in to comment.