11services :
2- # ##########
3- # Dev App #
4- # ##########
5- test_app :
6- container_name : test_app
7- image : ${IMAGE_TEST}
8- build :
9- context : tests/
10- dockerfile : ${DOCKERFILE_TEST}
11- tags :
12- - ${IMAGE_TEST}:latest
13- - ${IMAGE_TEST}:dev
14- volumes :
15- - ${WORKCELLS_DIR}:/workcell_defs
16- - ${WEI_DATA_DIR}:/home/app/.wei
17- - diaspora_config:/home/app/.diaspora
18- - ${PROJECT_DIR}:/home/app/wei # for development only
19- env_file :
20- - .env
21- profiles :
22- - test
23- command : pytest -p no:cacheprovider wei
24- depends_on :
25- - synthesis
26- - transfer
27- - measure
28- - wei_server
29- - wei_engine
30- - wei_redis
31-
322 # ##########
333 # Modules #
344 # ##########
355 synthesis :
36- image : ${IMAGE_TEST }
6+ image : ${IMAGE }
377 container_name : synthesis
388 ports :
399 - 2000:2000
4010 command : ' python3 wei/tests/test_module/test_rest_node.py
4111 --port 2000
4212 --alias synthesis'
4313 transfer :
44- image : ${IMAGE_TEST }
14+ image : ${IMAGE }
4515 container_name : transfer
4616 ports :
4717 - 2001:2001
4818 command : ' python3 wei/tests/test_module/test_rest_node.py
4919 --port 2001
5020 --alias transfer'
5121 measure :
52- image : ${IMAGE_TEST }
22+ image : ${IMAGE }
5323 container_name : measure
5424 ports :
5525 - 2002:2002
@@ -72,26 +42,29 @@ services:
7242 ports :
7343 - 8000:8000
7444 volumes :
75- - ${WORKCELLS_DIR}:/workcell_defs
76- - ${WEI_DATA_DIR}:/home/app/.wei
7745 - diaspora_config:/home/app/.diaspora
78- - ${PROJECT_DIR}:/home/app/wei # for development only
79- env_file :
80- - .env
46+ - ./tests/workcells:/workcell_defs
47+ - ~/.wei:/home/app/.wei
48+
49+ environment :
50+ - PYTHONUNBUFFERED=1 # Fix weird bug with empty logging
51+ - USER_ID=${USER_ID:-1000}
52+ - GROUP_ID=${GROUP_ID:-1000}
8153 command : python3 -m wei.server --workcell /workcell_defs/${WORKCELL_FILENAME}
8254 depends_on :
8355 - wei_redis
8456 wei_engine :
8557 image : ${IMAGE}
8658 container_name : wei_engine
8759 volumes :
88- - ${WORKCELLS_DIR}:/workcell_defs
89- - ${WEI_DATA_DIR}:/home/app/.wei
90- - ${PROJECT_DIR}:/home/app/wei # for development only
60+ - diaspora_config:/home/app/.diaspora
61+ - ./tests/workcells:/workcell_defs
62+ - ~/.wei:/home/app/.wei
63+ - ./:/home/app/wei # for development only
9164 environment :
92- - PYTHONUNBUFFERED=1 # Fix weird bug with empty logging
93- env_file :
94- - .env
65+ - PYTHONUNBUFFERED=1 # Fix weird bug with empty logging
66+ - USER_ID=${USER_ID:-1000}
67+ - GROUP_ID=${GROUP_ID:-1000}
9568 command : python3 -m wei.engine --workcell /workcell_defs/${WORKCELL_FILENAME}
9669 depends_on :
9770 - wei_redis
@@ -102,8 +75,11 @@ services:
10275 ports :
10376 - 6379:6379
10477 volumes :
105- - ${REDIS_DIR}:/data
106- command : redis-server --save 60 1 --loglevel warning
78+ - ~/.wei/redis:/data
79+ command : ' redis-server
80+ --save 600 1
81+ --loglevel warning
82+ --appendonly yes'
10783
10884# ###############
10985# Data Storage #
0 commit comments