-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (77 loc) · 2.42 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
75
76
77
78
79
80
81
82
83
x-shared-top-level: &shared-top-level
restart: "no"
version: "3.9"
services:
mongodb:
<<: *shared-top-level
image: mongo:jammy
container_name: feecc_demo_mongoDB
network_mode: host
environment:
MONGO_INITDB_DATABASE: FEECC-Demo
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: pass
volumes:
- ./mongodb-local:/docker-entrypoint-initdb.d:ro
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
ipfsnode:
<<: *shared-top-level
image: ipfs/go-ipfs:v0.17.0
container_name: feecc_demo_ipfsnode
healthcheck:
interval: 5s
network_mode: host
workbench-daemon:
<<: *shared-top-level
container_name: feecc_demo_workbench_daemon
network_mode: host
environment:
MONGODB_URI: "mongodb://root:pass@localhost:27017/?authMechanism=DEFAULT"
MONGODB_DB_NAME: "FEECC-Demo"
PY_IPFS_HTTP_CLIENT_DEFAULT_ADDR: "/ip4/127.0.0.1/tcp/5001/http"
IPFS_GATEWAY_LINK_PREFIX: "http://localhost:8080/ipfs/"
HID_DEVICES_RFID_READER: Sample RFID Scanner # RFID reader device name
HID_DEVICES_BARCODE_READER: Sample Barcode Scanner # Barcode reader device name
FFMPEG_COMMAND: 'ffmpeg -loglevel warning -i videos/demo_assembly.mp4 FILENAME' # ffmpeg stream
volumes:
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
- "./unit-passports/:/src/unit-passports/"
depends_on:
mongodb:
condition: service_healthy
build:
context: workbench-daemon
dockerfile: Dockerfile
workbench-frontend:
<<: *shared-top-level
container_name: feecc_demo_workbench_frontend
network_mode: host
build:
context: workbench-frontend
dockerfile: Dockerfile
args:
APPLICATION_SOCKET: "http://localhost:5000"
INTERFACE_LANGUAGE: "en"
DEV_SHOW_REDUCERS: "true"
SHOW_TEST_SCHEMAS: "true"
USE_DEVTOOLS: "true"
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1
interval: 1m
timeout: 3s
retries: 3
start_period: 20s
hid-emulator:
<<: *shared-top-level
image: nyurik/alpine-python3-requests
container_name: feecc_demo_hid_emulator
network_mode: host
build:
context: hid-emulator
dockerfile: Dockerfile