forked from ncbo/ontoportal_docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml
45 lines (42 loc) · 1.41 KB
/
docker-compose.dev.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
# docker compose overwrite file for running ontoportal backend for development
#
# it expects to have git repos for ontologies_api, ncbo_cron and ontologies_linked_data
# to be in the same directory as ontoportal_docker which will be mounted on the container
# giving ability to run code from those directories inside container
x-app: &api
build: &build
args:
RUBY_VERSION: '2.7'
stdin_open: true
tty: true
env_file:
.env
services:
api:
<<: *api
build:
<<: *build
context: ../ontologies_api
image: ontoportal_api:0.0.2
command: "bundle exec rackup -o 0.0.0.0 --port 9393"
volumes:
- history:/usr/local/hist
# bundle volume for hosting gems installed by bundle; it helps in local development with gem udpates
- bundle:/srv/ontoportal/bundle
# api code
- ./../ontologies_api:/srv/ontoportal/ontologies_api
# mount directory containing development version of the gems if you need to use 'bundle config local'
#- /Users/alexskr/ontoportal:/Users/alexskr/ontoportal
ports:
- 9393:9393
ncbo_cron:
<<: *api
build:
<<: *build
context: ../ncbo_cron
image: ncbo_cron:0.0.2
volumes:
- history:/usr/local/hist
# bundle volume for hosting gems installed by bundle; it helps in local development with gem udpates
- bundle:/srv/ontoportal/bundle
- ./../ncbo_cron:/srv/ontoportal/ncbo_cron