-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsingularity-compose.yml
113 lines (105 loc) · 3.49 KB
/
singularity-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
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
container_name: brainlife_ezbids-mongodb
image: docker://mongo:4.4.15
# build:
# context: ./mongodb
# options:
# - fakeroot
platform: linux/amd64
volumes:
- ./mongodb/data/db:/data/db
ports:
- "27417:27017" #for local debugging
# start:
# options:
# - fakeroot
# run:
# background: true # Does this actually run things in the background? Doesn't seem to
# api:
# container_name: brainlife_ezbids-api
# build:
# context: .
# options:
# - fakeroot
# platform: linux/amd64
# volumes:
# # - ./api:/app/api
# - .:/app
# - /tmp:/tmp
# # depends_on:
# # mongodb:
# # condition: service_healthy
# post:
# command: ["/bin/bash", "./api/dev.sh"] # This seems to cause the npm install to freeze
# 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
# environment:
# MONGO_CONNECTION_STRING: mongodb://mongodb:27017/ezbids
# tty: true #turn on color for bids-validator output
# 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)
# environment:
# VITE_APIHOST: http://localhost:8082
# # healthcheck:
# # test: ["CMD", "curl", "-f", "http://localhost:3000"]
# ports:
# - 3000:3000 #vite wants to be exposed on the host for HMR?