Skip to content

Commit

Permalink
remove old commented functionality and provide full definition for lo…
Browse files Browse the repository at this point in the history
…cal Docker image build
  • Loading branch information
nam20485 committed May 8, 2024
1 parent b432818 commit 6c91abd
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,33 @@ name: odbdesign

services:

server:
## enable for passing in branch name as an environment variable
#environment:
# - BRANCH=nam20485
#image: ghcr.io/nam20485/odbdesign:${BRANCH}-latest
image: ghcr.io/nam20485/odbdesign:nam20485-latest
## enable for local build via the Dockerfile (and disable "image:" key above)
# build:
# context: .
# dockerfile: Dockerfile
#container_name: odbdesign-server
### use remote image build from github container registry
server:
image: ghcr.io/nam20485/odbdesign:nam20485-latest
volumes:
- ./compose-designs:/OdbDesign/designs
ports:
- 8888:8888
environment:
- ODBDESIGN_SERVER_REQUEST_USERNAME
- ODBDESIGN_SERVER_REQUEST_PASSWORD


### use local image built from Dockerfile
# server:
# build:
# context: .
# dockerfile: Dockerfile
# volumes:
# - ./compose-designs:/OdbDesign/designs
# ports:
# - 8888:8888
# environment:
# - ODBDESIGN_SERVER_REQUEST_USERNAME
# - ODBDESIGN_SERVER_REQUEST_PASSWORD

swagger-ui:
## enable for passing in branch name as an environment variable
# environment:
# - BRANCH=nam20485
# image: ghcr.io/nam20485/odbdesignserver-swaggerui:${BRANCH}-latest
image: ghcr.io/nam20485/odbdesignserver-swaggerui:nam20485-latest
#container_name: swagger-ui
image: ghcr.io/nam20485/odbdesignserver-swaggerui:nam20485-latest
depends_on:
- server
ports:
- 8080:8080

- 8080:8080

0 comments on commit 6c91abd

Please sign in to comment.