Skip to content

Commit

Permalink
update docker compose and env
Browse files Browse the repository at this point in the history
  • Loading branch information
cauta committed Jun 11, 2024
1 parent 7dc3059 commit bd686d1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
8 changes: 4 additions & 4 deletions app/docker/.env.sample
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#VERSION=master
SERVER_PORT=3002
#VERSION=latest
# SERVER_PORT=3002
# LOGS=error,warn,log,fatal

# Swagger Config
Expand Down Expand Up @@ -31,11 +31,11 @@ JWT_SECRET_KEY=12312312312312312
KAFKA_BROKERS=kafka:9092 # multi brokers split by ','

# Webhook service
WEBHOOK_API_URL=http://host.docker.internal:8000
WEBHOOK_API_URL=http://webhook-server:8000


# Blockchain environment variables
ETH_PROVIDER_URL=
ETH_PROVIDER_URL=https://mainnet.infura.io/v3/yourkey
EVM_DISABLE=false
EVM_START_BLOCK=10199699
EVM_START_BLOCK_CONFIG=latest # 'config' or 'latest' or 'db'
Expand Down
2 changes: 1 addition & 1 deletion app/docker/docker-compose-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.7'

services:
zookeeper:
image: confluentinc/cp-zookeeper:7.4.
image: confluentinc/cp-zookeeper:7.4.4
restart: always
environment:
ZOOKEEPER_CLIENT_PORT: 2181
Expand Down
12 changes: 3 additions & 9 deletions app/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.7'

services:
api:
image: crypitor/crypitor-api:${VERSION:-master}
image: crypitor/crypitor-api:${VERSION:-latest}
env_file:
- .env
ports:
Expand All @@ -12,42 +12,36 @@ services:
aliases:
- api
depends_on:
redis:
condition: service_healthy
mongo:
condition: service_healthy
kafka:
condition: service_healthy
extra_hosts:
- 'host.docker.internal:host-gateway'
monitor:
image: crypitor/crypitor-monitor:${VERSION:-master}
image: crypitor/crypitor-monitor:${VERSION:-latest}
env_file:
- .env
networks:
crypitor-network:
aliases:
- monitor
depends_on:
redis:
condition: service_healthy
mongo:
condition: service_healthy
kafka:
condition: service_healthy
extra_hosts:
- 'host.docker.internal:host-gateway'
worker:
image: crypitor/crypitor-worker:${VERSION:-master}
image: crypitor/crypitor-worker:${VERSION:-latest}
env_file:
- .env
networks:
crypitor-network:
aliases:
- worker
depends_on:
redis:
condition: service_healthy
mongo:
condition: service_healthy
kafka:
Expand Down

0 comments on commit bd686d1

Please sign in to comment.