generated from AD-SDL/wei_template_workcell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
44 lines (43 loc) · 1.19 KB
/
compose.yaml
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
name: x4_workcell
services:
###########
# Modules #
###########
# ot2_x4:
# container_name: ot2_x4
# image: ghcr.io/ad-sdl/ot2_module
# command: python ot2_module/src/ot2_rest_node.py --port 2000 --ot2_ip ${OT2_IP} --alias ot2_x4
# restart: unless-stopped
# environment:
# - USER_ID=1000
# - GROUP_ID=1000
# ports:
# - 2000:2000
#####################
# WEI Core Services #
#####################
x4_wc_server:
image: ghcr.io/ad-sdl/wei:v0.6.2
container_name: x4_wc_server
ports:
- 8000:8000
environment:
- USER_ID=1000
- GROUP_ID=1000
- PYTHONUNBUFFERED=1 # Fix weird bug with empty logging
volumes:
- ${WORKCELLS_DIR}:/workcell_defs
- ${WEI_DATA_DIR}:/home/app/.wei
command: python3 -m wei.server --workcell /workcell_defs/${WORKCELL_FILENAME} --redis_password="${REDIS_PASSWORD}"
restart: unless-stopped
depends_on:
- x4_wc_redis
x4_wc_redis:
image: redis
container_name: x4_wc_redis
ports:
- 6379:6379
volumes:
- ${REDIS_DIR}:/data
restart: unless-stopped
command: redis-server --save 60 1 --loglevel warning --requirepass "${REDIS_PASSWORD}"