forked from datajoint-company/ibl-navigator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
54 lines (54 loc) · 1.33 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
46
47
48
49
50
51
52
53
54
# Use: Local development.
# docker-compose -f docker-compose-dev.yml up --build
version: '2.4'
x-net: &net
networks:
- main
services:
iblapi:
extends:
file: ./docker-compose-build.yml
service: iblapi
image: iblapi:v0.0.0
ports:
- "5000:5000" # iblapi
#entrypoint: ["/src/iblapi/run-ibl-api.dev.sh", "development"]
<<: *net
ibl-navigator:
extends:
file: ./docker-compose-build.yml
service: ibl-navigator
build:
context: ./ibl-frontend
dockerfile: dev.dockerfile
image: ibl-navigator:v0.0.0
environment:
# - DEV_NODE_BACKEND=http://localhost:3333/api
- DEV_NODE_BACKEND=https://fakeservices.datajoint.io/api
volumes:
- ./ibl-frontend/frontend-content/src:/app/src
- ./ibl-frontend/frontend-content/angular.json:/app/angular.json
<<: *net
ibl-node-server:
extends:
file: ./docker-compose-build.yml
service: ibl-node-server
image: ibl-node-server:v0.0.0
# command: nodemon /src/server.js
volumes:
- ./node_server/app.js:/src/app.js
<<: *net
nginx:
extends:
file: ./docker-compose-build.yml
service: nginx
ports:
- "3333:3333" # node-server
- "9000:9000" # frontend
<<: *net
networks:
main:
ipam:
driver: default
config:
- subnet: 10.28.0.0/16