convert over to docker-compose v2 format, create 'xos' network, to try to get #1850 in faster
use xos_db db host, update other docker-compose files
Change-Id: I7c81b11b9effb0eb89c1eaff515e9901e1096a4a
diff --git a/test-standalone/docker-compose-bootstrap.yml b/test-standalone/docker-compose-bootstrap.yml
index 7b8a093..c8910fd 100644
--- a/test-standalone/docker-compose-bootstrap.yml
+++ b/test-standalone/docker-compose-bootstrap.yml
@@ -1,10 +1,22 @@
-xos_db:
+---
+version: '2'
+
+networks:
+ xos:
+ external: true
+
+services:
+ xos_db:
image: xosproject/xos-postgres
+ networks:
+ - xos
expose:
- "5432"
-xos_bootstrap_ui:
+ xos_bootstrap_ui:
image: xosproject/xos
+ networks:
+ - xos
command: python /opt/xos/manage.py runserver 0.0.0.0:9998 --insecure --makemigrations
ports:
- "9998:9998"
@@ -17,9 +29,16 @@
- ../../xos/xos/core/tests:/opt/xos/core/tests
- ../common/tosca/fixtures.yaml:/opt/xos/bootstrap_tosca/fixtures.yaml
- ./deployment.yaml:/opt/xos/bootstrap_tosca/deployment.yaml
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "1000k"
+ max-file: "5"
-xos_synchronizer_onboarding:
+ xos_synchronizer_onboarding:
image: xosproject/xos
+ networks:
+ - xos
command: bash -c "cd /opt/xos/synchronizers/onboarding; ./run.sh"
# command: sleep 86400
labels:
@@ -33,7 +52,9 @@
- ./onboarding-docker-compose:/opt/xos/synchronizers/onboarding/docker-compose
- ../../xos_services:/opt/xos_services
- ../../xos_libraries:/opt/xos_libraries
- log_driver: "json-file"
- log_opt:
- max-size: "100k"
- max-file: "5"
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "1000k"
+ max-file: "5"
+