mirror of
https://github.com/status-im/status-python-sdk.git
synced 2026-08-30 21:51:14 +00:00
Related to: - https://github.com/status-im/status-bot/issues/14 - https://github.com/status-im/status-bot/issues/4 - https://github.com/status-im/data-docs/issues/153 Notes: - SImplified `Account` class is used instead of initial `StatusBackend` - Add `Account` requirements.txt - Fixed backup load bug. Initially wrong event was monitored and it would wait forever. - Latest Status Backend Dockerfile is pulled from GitHub instead of Harbor - Postgres schema is created if it doesn't exist
57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
---
|
|
services:
|
|
backend:
|
|
build:
|
|
context: https://github.com/status-im/status-go.git#develop
|
|
platform: linux/amd64
|
|
container_name: status-backend
|
|
ports:
|
|
- 8080:8080
|
|
- 8545:8545
|
|
- 30303:30303
|
|
entrypoint: 'status-backend'
|
|
command: '-address 0.0.0.0:8080'
|
|
volumes:
|
|
- ./backups:/root/.config/Status/backups
|
|
networks:
|
|
- status-bridge
|
|
healthcheck:
|
|
test: ["CMD", "curl http://0.0.0.0:8080/health"]
|
|
|
|
bot:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: status-monitor
|
|
depends_on:
|
|
- backend
|
|
- database
|
|
volumes:
|
|
- ./backups:/backups
|
|
env_file:
|
|
- .env
|
|
networks:
|
|
- status-bridge
|
|
|
|
database:
|
|
image: postgres:15
|
|
container_name: database
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- 5432:5432
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql
|
|
networks:
|
|
- status-bridge
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready POSTGRES_USERNAME --dbname POSTGRES_DATABASE"]
|
|
|
|
networks:
|
|
status-bridge:
|
|
name: status-bridge
|
|
driver: bridge
|
|
|
|
volumes:
|
|
postgres-data:
|