Skip to content

Commit 3f7e86b

Browse files
committed
recompose containers
1 parent fcafd63 commit 3f7e86b

File tree

2 files changed

+34
-224
lines changed

2 files changed

+34
-224
lines changed

frontend/default.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ location /assets {
7474

7575

7676
location /wsapi {
77-
proxy_pass http://opencexwss:8000;
77+
proxy_pass http://opencex-wss:8000;
7878
proxy_http_version 1.1;
7979
proxy_set_header Upgrade $http_upgrade;
8080
proxy_set_header Connection "upgrade";

opencex.sh

+33-223
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,8 @@ services:
719719
- caddy
720720
- bitcoind
721721
722-
opencexwss:
723-
container_name: opencexwss
722+
opencex-wss:
723+
container_name: opencex-wss
724724
image: opencex:latest
725725
command: daphne -b 0.0.0.0 exchange.asgi:application
726726
restart: always
@@ -738,10 +738,10 @@ services:
738738
- bitcoind
739739
- opencex
740740
741-
opencexcel:
742-
container_name: opencexcel
741+
opencex-cel:
742+
container_name: opencex-cel
743743
image: opencex:latest
744-
command: celery -A exchange worker -l info -n general -B -s /tmp/cebeat.db -X btc,eth_new_blocks,eth_deposits,eth_payouts,eth_check_balances,eth_accumulations,erc20_accumulations,eth_send_gas,bnb_new_blocks,bnb_deposits,bnb_payouts,bnb_check_balances,bnb_accumulations,bep20_accumulations,bnb_send_gas,trx_new_blocks,trx_deposits,trx_payouts,trx_check_balances,trx_accumulations,trc20_accumulations
744+
command: celery -A exchange worker -l info -n general -B -s /tmp/cebeat.db -X btc,eth_new_blocks,eth_deposits,eth_payouts,eth_check_balances,eth_accumulations,eth_tokens_accumulations,eth_send_gas,bnb_new_blocks,bnb_deposits,bnb_payouts,bnb_check_balances,bnb_accumulations,bnb_tokens_accumulations,bnb_send_gas,trx_new_blocks,trx_deposits,trx_payouts,trx_check_balances,trx_accumulations,trx_tokens_accumulations
745745
restart: always
746746
volumes:
747747
- /app/opencex/backend:/app
@@ -757,8 +757,8 @@ services:
757757
- bitcoind
758758
- opencex
759759
760-
opencex-matching:
761-
container_name: opencex-matching
760+
opencex-stack:
761+
container_name: opencex-stack
762762
image: opencex:latest
763763
command: python bin/stack.py
764764
restart: always
@@ -814,122 +814,8 @@ services:
814814
- bitcoind
815815
- opencex
816816
817-
opencex-eth-deposits:
818-
container_name: opencex-eth-deposits
819-
image: opencex:latest
820-
command: bash -c "celery -A exchange worker -l info -n eth_deposits -Q eth_deposits -c 1 "
821-
restart: always
822-
volumes:
823-
- /app/opencex/backend:/app
824-
networks:
825-
- caddy
826-
depends_on:
827-
- postgresql
828-
- redis
829-
- rabbitmq
830-
- frontend
831-
- nuxt
832-
- caddy
833-
- bitcoind
834-
- opencex
835-
836-
opencex-eth-payouts:
837-
container_name: opencex-eth-payouts
838-
image: opencex:latest
839-
command: bash -c "celery -A exchange worker -l info -n eth_payouts -Q eth_payouts -c 1 "
840-
restart: always
841-
volumes:
842-
- /app/opencex/backend:/app
843-
networks:
844-
- caddy
845-
depends_on:
846-
- postgresql
847-
- redis
848-
- rabbitmq
849-
- frontend
850-
- nuxt
851-
- caddy
852-
- bitcoind
853-
- opencex
854-
855-
opencex-eth-balances:
856-
container_name: opencex-eth-balances
857-
image: opencex:latest
858-
command: bash -c "celery -A exchange worker -l info -n eth_check_balances -Q eth_check_balances -c 1 "
859-
restart: always
860-
volumes:
861-
- /app/opencex/backend:/app
862-
networks:
863-
- caddy
864-
depends_on:
865-
- postgresql
866-
- redis
867-
- rabbitmq
868-
- frontend
869-
- nuxt
870-
- caddy
871-
- bitcoind
872-
- opencex
873-
874-
opencex-eth-accumulations:
875-
container_name: opencex-eth-accumulations
876-
image: opencex:latest
877-
command: bash -c "celery -A exchange worker -l info -n eth_accumulations -Q eth_accumulations -c 1 "
878-
restart: always
879-
volumes:
880-
- /app/opencex/backend:/app
881-
networks:
882-
- caddy
883-
depends_on:
884-
- postgresql
885-
- redis
886-
- rabbitmq
887-
- frontend
888-
- nuxt
889-
- caddy
890-
- bitcoind
891-
- opencex
892-
893-
opencex-erc-accumulations:
894-
container_name: opencex-erc-accumulations
895-
image: opencex:latest
896-
command: bash -c "celery -A exchange worker -l info -n erc20_accumulations -Q erc20_accumulations -c 1 "
897-
restart: always
898-
volumes:
899-
- /app/opencex/backend:/app
900-
networks:
901-
- caddy
902-
depends_on:
903-
- postgresql
904-
- redis
905-
- rabbitmq
906-
- frontend
907-
- nuxt
908-
- caddy
909-
- bitcoind
910-
- opencex
911-
912-
opencex-eth-gas:
913-
container_name: opencex-eth-gas
914-
image: opencex:latest
915-
command: bash -c "celery -A exchange worker -l info -n eth_send_gas -Q eth_send_gas -c 1 "
916-
restart: always
917-
volumes:
918-
- /app/opencex/backend:/app
919-
networks:
920-
- caddy
921-
depends_on:
922-
- postgresql
923-
- redis
924-
- rabbitmq
925-
- frontend
926-
- nuxt
927-
- caddy
928-
- bitcoind
929-
- opencex
930-
931-
opencexbnbblocks:
932-
container_name: opencexbnbblocks
817+
opencex-bnb-blocks:
818+
container_name: opencex-bnb-blocks
933819
image: opencex:latest
934820
command: bash -c "celery -A exchange worker -l info -n bnb_new_blocks -Q bnb_new_blocks -c 1 "
935821
restart: always
@@ -947,86 +833,10 @@ services:
947833
- bitcoind
948834
- opencex
949835
950-
opencexbnbdeposits:
951-
container_name: opencexbnbdeposits
836+
opencex-trx-blocks:
837+
container_name: opencex-trx-blocks
952838
image: opencex:latest
953-
command: bash -c "celery -A exchange worker -l info -n bnb_deposits -Q bnb_deposits -c 1 "
954-
restart: always
955-
volumes:
956-
- /app/opencex/backend:/app
957-
networks:
958-
- caddy
959-
depends_on:
960-
- postgresql
961-
- redis
962-
- rabbitmq
963-
- frontend
964-
- nuxt
965-
- caddy
966-
- bitcoind
967-
- opencex
968-
969-
opencexbnbpayouts:
970-
container_name: opencexbnbpayouts
971-
image: opencex:latest
972-
command: bash -c "celery -A exchange worker -l info -n bnb_payouts -Q bnb_payouts -c 1 "
973-
restart: always
974-
volumes:
975-
- /app/opencex/backend:/app
976-
networks:
977-
- caddy
978-
depends_on:
979-
- postgresql
980-
- redis
981-
- rabbitmq
982-
- frontend
983-
- nuxt
984-
- caddy
985-
- bitcoind
986-
- opencex
987-
988-
opencexbnbbalances:
989-
container_name: opencexbnbbalances
990-
image: opencex:latest
991-
command: bash -c "celery -A exchange worker -l info -n bnb_check_balances -Q bnb_check_balances -c 1 "
992-
restart: always
993-
volumes:
994-
- /app/opencex/backend:/app
995-
networks:
996-
- caddy
997-
depends_on:
998-
- postgresql
999-
- redis
1000-
- rabbitmq
1001-
- frontend
1002-
- nuxt
1003-
- caddy
1004-
- bitcoind
1005-
- opencex
1006-
1007-
opencexbnbaccumulations:
1008-
container_name: opencexbnbaccumulations
1009-
image: opencex:latest
1010-
command: bash -c "celery -A exchange worker -l info -n bnb_accumulations -Q bnb_accumulations -c 1 "
1011-
restart: always
1012-
volumes:
1013-
- /app/opencex/backend:/app
1014-
networks:
1015-
- caddy
1016-
depends_on:
1017-
- postgresql
1018-
- redis
1019-
- rabbitmq
1020-
- frontend
1021-
- nuxt
1022-
- caddy
1023-
- bitcoind
1024-
- opencex
1025-
1026-
opencexbepaccumulations:
1027-
container_name: opencexbepaccumulations
1028-
image: opencex:latest
1029-
command: bash -c "celery -A exchange worker -l info -n bep20_accumulations -Q bep20_accumulations -c 1 "
839+
command: bash -c "celery -A exchange worker -l info -n trx_new_blocks -Q trx_new_blocks -c 1 "
1030840
restart: always
1031841
volumes:
1032842
- /app/opencex/backend:/app
@@ -1042,10 +852,10 @@ services:
1042852
- bitcoind
1043853
- opencex
1044854
1045-
opencexbnbgas:
1046-
container_name: opencexbnbgas
855+
opencex-matic-blocks:
856+
container_name: opencex-matic-blocks
1047857
image: opencex:latest
1048-
command: bash -c "celery -A exchange worker -l info -n bnb_send_gas -Q bnb_send_gas -c 1 "
858+
command: bash -c "celery -A exchange worker -l info -n matic_new_blocks -Q matic_new_blocks -c 1 "
1049859
restart: always
1050860
volumes:
1051861
- /app/opencex/backend:/app
@@ -1061,10 +871,10 @@ services:
1061871
- bitcoind
1062872
- opencex
1063873
1064-
opencextrxblocks:
1065-
container_name: opencextrxblocks
874+
opencex-deposits:
875+
container_name: opencex-deposits
1066876
image: opencex:latest
1067-
command: bash -c "celery -A exchange worker -l info -n trx_new_blocks -Q trx_new_blocks -c 1 "
877+
command: bash -c "celery -A exchange worker -l info -n matic_new_blocks -Q matic_new_blocks -c 1 "
1068878
restart: always
1069879
volumes:
1070880
- /app/opencex/backend:/app
@@ -1080,10 +890,10 @@ services:
1080890
- bitcoind
1081891
- opencex
1082892
1083-
opencextrxdeposits:
1084-
container_name: opencextrxdeposits
893+
opencex-payouts:
894+
container_name: opencex-payouts
1085895
image: opencex:latest
1086-
command: bash -c "celery -A exchange worker -l info -n trx_deposits -Q trx_deposits -c 1 "
896+
command: bash -c "celery -A exchange worker -l info -n payouts -Q trx_payouts,eth_payouts,bnb_payouts,matic_payouts -c 1 "
1087897
restart: always
1088898
volumes:
1089899
- /app/opencex/backend:/app
@@ -1099,10 +909,10 @@ services:
1099909
- bitcoind
1100910
- opencex
1101911
1102-
opencextrxpayouts:
1103-
container_name: opencextrxpayouts
912+
opencex-balances:
913+
container_name: opencex-balances
1104914
image: opencex:latest
1105-
command: bash -c "celery -A exchange worker -l info -n trx_payouts -Q trx_payouts -c 1 "
915+
command: bash -c "celery -A exchange worker -l info -n check_balances -Q trx_check_balances,bnb_check_balances,eth_check_balances,matic_check_balances -c 1 "
1106916
restart: always
1107917
volumes:
1108918
- /app/opencex/backend:/app
@@ -1118,10 +928,10 @@ services:
1118928
- bitcoind
1119929
- opencex
1120930
1121-
opencextrxbalances:
1122-
container_name: opencextrxbalances
931+
opencex-coin-accumulations:
932+
container_name: opencex-coin-accumulations
1123933
image: opencex:latest
1124-
command: bash -c "celery -A exchange worker -l info -n trx_check_balances -Q trx_check_balances -c 1 "
934+
command: bash -c "celery -A exchange worker -l info -n coin_accumulations -Q trx_accumulations,bnb_accumulations,eth_accumulations,matic_accumulations -c 1 "
1125935
restart: always
1126936
volumes:
1127937
- /app/opencex/backend:/app
@@ -1137,10 +947,10 @@ services:
1137947
- bitcoind
1138948
- opencex
1139949
1140-
opencextrxaccumulations:
1141-
container_name: opencextrxaccumulations
950+
opencex-token-accumulations:
951+
container_name: opencex-token-accumulations
1142952
image: opencex:latest
1143-
command: bash -c "celery -A exchange worker -l info -n trx_accumulations -Q trx_accumulations -c 1 "
953+
command: bash -c "celery -A exchange worker -l info -n tokens_accumulations -Q trx_tokens_accumulations,bnb_tokens_accumulations,eth_tokens_accumulations,matic_tokens_accumulations -c 1 "
1144954
restart: always
1145955
volumes:
1146956
- /app/opencex/backend:/app
@@ -1156,10 +966,10 @@ services:
1156966
- bitcoind
1157967
- opencex
1158968
1159-
opencextrcaccumulations:
1160-
container_name: opencextrcaccumulations
969+
opencex-gas:
970+
container_name: opencex-gas
1161971
image: opencex:latest
1162-
command: bash -c "celery -A exchange worker -l info -n trc20_accumulations -Q trc20_accumulations -c 1 "
972+
command: bash -c "celery -A exchange worker -l info -n send_gas -Q trx_send_gas,bnb_send_gas,eth_send_gas,matic_send_gas -c 1 "
1163973
restart: always
1164974
volumes:
1165975
- /app/opencex/backend:/app

0 commit comments

Comments
 (0)