-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dan Levitas
committed
Feb 6, 2024
1 parent
09ff81b
commit b141fad
Showing
4 changed files
with
102 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,109 +1,73 @@ | ||
version: "2.0" | ||
|
||
instances: | ||
# mongodb: # ORIGINAL | ||
# container_name: brainlife_ezbids-mongodb | ||
# image: docker://mongo:4.4.15 | ||
# platform: linux/amd64 | ||
# volumes: | ||
# - /tmp:/tmp | ||
# ports: | ||
# - 27417:27017 #for local debugging | ||
# post: | ||
# command: | ||
# - "mongod --dbpath /tmp" | ||
|
||
# mongodb: # NEW BUT STILL BAD | ||
# container_name: brainlife_ezbids-mongodb | ||
# build: | ||
# context: ./mongodb | ||
# options: | ||
# - fakeroot | ||
# platform: linux/amd64 | ||
# # volumes: | ||
# # - ./data/db:/data/db | ||
# post: | ||
# command: [ "/bin/bash", "./mongodb/mongodb_setup.sh"] | ||
# ports: | ||
# - 27417:27017 #for local debugging | ||
|
||
# mongodb: # THIRD ATTEMPT | ||
# container_name: brainlife_ezbids-mongodb | ||
# image: docker://mongo:4.4.15 | ||
# platform: linux/amd64 | ||
# volumes: | ||
# - ./data/db:/data/db | ||
# ports: | ||
# - 27417:27017 #for local debugging | ||
# # run: | ||
# # background: true # Does this actually run things in the background? Doesn't seem to | ||
|
||
mongodb: # FOURTH ATTEMPT | ||
mongodb: | ||
container_name: brainlife_ezbids-mongodb | ||
build: | ||
context: ./mongodb | ||
options: | ||
- fakeroot | ||
platform: linux/amd64 | ||
volumes: | ||
- ./mongodb/data/db:/data/db | ||
- ./mongodb/data:/data/db | ||
network: | ||
options: | ||
- fakeroot | ||
# enable: true | ||
# allocate_ip: true | ||
enable: true | ||
allocate_ip: true | ||
args: | ||
- portmap=27417:27017/tcp | ||
- IP=127.0.0.1 | ||
ports: | ||
- 27417:27017 #for local debugging | ||
- 27417:27017 # for local debugging | ||
run: # start results in errors | ||
background: true | ||
options: | ||
- fakeroot | ||
command: mongod --dbpath /data/db | ||
command: mongod --dbpath /data/db --port=27017 # command: mongod --dbpath /data/db --bind_ip_all --logpath /data/db/mongod.log --fork | ||
|
||
# api: # This seemss good, just needs mongodb up and running properly | ||
# container_name: brainlife_ezbids-api | ||
# build: | ||
# context: . | ||
# options: | ||
# - fakeroot | ||
# platform: linux/amd64 | ||
# volumes: | ||
# - ./api:/app/api | ||
# - /tmp:/tmp | ||
# ports: | ||
# - 8082:8082 #localhost runs on local browser to it needs to access api via host port | ||
api: # This seemss good, just needs mongodb up and running properly | ||
container_name: brainlife_ezbids-api | ||
build: | ||
context: . | ||
options: | ||
- fakeroot | ||
platform: linux/amd64 | ||
volumes: | ||
- ./api:/app/api | ||
- /tmp:/tmp | ||
ports: | ||
- 8082:8082 #localhost runs on local browser to it needs to access api via host port | ||
|
||
# handler: | ||
# container_name: brainlife_ezbids-handler | ||
# build: | ||
# context: ./handler | ||
# options: | ||
# - fakeroot | ||
# platform: linux/amd64 | ||
# volumes: | ||
# - .:/app | ||
# - /tmp:/tmp | ||
# # depends_on: | ||
# # mongodb: | ||
# # condition: service_healthy | ||
# # api: | ||
# # condition: service_healthy | ||
# # tty: true #turn on color for bids-validator output | ||
# run: | ||
# options: | ||
# - fakeroot | ||
# command: pm2 start handler.js --attach --watch --ignore-watch "ui **/node_modules" | ||
handler: | ||
container_name: brainlife_ezbids-handler | ||
build: | ||
context: ./handler | ||
options: | ||
- fakeroot | ||
platform: linux/amd64 | ||
volumes: | ||
- .:/app | ||
- /tmp:/tmp | ||
# depends_on: | ||
# mongodb: | ||
# condition: service_healthy | ||
# api: | ||
# condition: service_healthy | ||
# tty: true # don't think this works with Singularity | ||
run: | ||
options: | ||
- fakeroot | ||
command: pm2 start handler.js --attach --watch --ignore-watch "ui **/node_modules" | ||
|
||
# ui: | ||
# container_name: brainlife_ezbids-ui | ||
# build: | ||
# context: ./ui | ||
# options: | ||
# - fakeroot | ||
# platform: linux/amd64 | ||
# volumes: | ||
# - ./ui/src:/ui/src #don't copy node_modules which might be compiled for mac (vite won't work) | ||
# ports: | ||
# - 3000:3000 #vite wants to be exposed on the host for HMR? | ||
ui: | ||
container_name: brainlife_ezbids-ui | ||
build: | ||
context: ./ui | ||
options: | ||
- fakeroot | ||
platform: linux/amd64 | ||
volumes: | ||
- ./ui/src:/ui/src # don't copy node_modules which might be compiled for mac (vite won't work) | ||
ports: | ||
- 3000:3000 # vite wants to be exposed on the host for HMR? |