Skip to content

Commit

Permalink
fix docker containers clash
Browse files Browse the repository at this point in the history
  • Loading branch information
ametel01 committed Dec 4, 2024
1 parent 015a104 commit 761153b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
11 changes: 11 additions & 0 deletions docker-compose.yml → docker-compose.mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ services:
context: .
ports:
- "8081:8080"
networks:
- mainnet_network
environment:
- DB_CONNECTION_STRING=${DB_CONNECTION_STRING_BACKUP}
- NODE_CONNECTION_STRING=${NODE_CONNECTION_STRING}
Expand All @@ -20,6 +22,8 @@ services:
build:
dockerfile: Dockerfile.fix
context: .
networks:
- mainnet_network
environment:
- DB_CONNECTION_STRING=${DB_CONNECTION_STRING_BACKUP}
- NODE_CONNECTION_STRING=${NODE_CONNECTION_STRING}
Expand All @@ -38,8 +42,15 @@ services:
- POSTGRES_DB=${POSTGRES_DB}
ports:
- "5432:5432"
networks:
- mainnet_network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
interval: 5s
timeout: 5s
retries: 5

networks:
mainnet_network:
volumes:
db_mainnet_data:
13 changes: 12 additions & 1 deletion docker-compose.sepolia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ services:
dockerfile: Dockerfile.update
context: .
ports:
- "8081:8080"
- "8082:8080"
networks:
- sepolia_network
environment:
- DB_CONNECTION_STRING=${SEPOLIA_DB_STRING}
- NODE_CONNECTION_STRING=${SEPOLIA_NODE_STRING}
Expand All @@ -20,6 +22,8 @@ services:
build:
dockerfile: Dockerfile.fix
context: .
networks:
- sepolia_network
environment:
- DB_CONNECTION_STRING=${SEPOLIA_DB_STRING}
- NODE_CONNECTION_STRING=${SEPOLIA_NODE_STRING}
Expand All @@ -38,8 +42,15 @@ services:
- POSTGRES_DB=${SEPOLIA_POSTGRES_DB}
ports:
- "5432:5432"
networks:
- sepolia_network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${SEPOLIA_POSTGRES_USER}"]
interval: 5s
timeout: 5s
retries: 5

networks:
sepolia_network:
volumes:
db_sepolia_data:

0 comments on commit 761153b

Please sign in to comment.