-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
74 lines (68 loc) · 1.66 KB
/
docker-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
version: '3.7'
services:
mongo:
image: mongo:4.4
restart: always
container_name: "mongodb_bl531"
working_dir: "/database/"
environment:
MONGO_INITDB_ROOT_USERNAME: '${MONGO_INITDB_ROOT_USERNAME}'
MONGO_INITDB_ROOT_PASSWORD: '${MONGO_INITDB_ROOT_PASSWORD}'
volumes:
- "./database/:/data/db"
networks:
- bl_service
beamline_api:
build:
context: 'beamline_service'
dockerfile: 'docker/Dockerfile'
command: 'python src/main.py'
environment:
MONGO_DB_URI: '${MONGO_DB_URI}'
depends_on:
- mongo
ports:
- 8090:8090
networks:
- bl_service
manager_frontend:
build:
context: 'client'
dockerfile: 'docker/Dockerfile'
command: 'python src/epics_db/launch_web_db.py'
environment:
BL_API_URL: 'http://beamline_api:8090/api/v0'
BL_API_KEY: '${BL_API_KEY}'
BL_UID: '${BL_UID}'
#volumes:
# - "client:/app/work/client"
ports:
- '8050:8050'
depends_on:
- beamline_api
networks:
- bl_service
client_frontend:
build:
context: 'client'
dockerfile: 'docker/Dockerfile'
command: 'python src/bl531_app.py'
environment:
BL_API_URL: 'http://beamline_api:8090/api/v0'
BL_API_KEY: '${BL_API_KEY}'
BL_UID: '${BL_UID}'
ports:
- '8052:8052'
volumes:
- "./client/src:/app/work/src"
depends_on:
- beamline_api
networks:
bl_service:
qs_net:
ipv4_address: ${IP_ADDRESS}
networks:
bl_service:
name: "bl_service"
qs_net:
external: true