Skip to content

Commit

Permalink
feat: connect to devnet
Browse files Browse the repository at this point in the history
  • Loading branch information
eddort committed Dec 23, 2024
1 parent 1a72fc2 commit b649c4f
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions docker-compose.devnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
version: '3.9'

networks:
devnet:
name: ${DOCKER_NETWORK_NAME}
external: true

services:
db:
image: postgres:16-alpine
restart: unless-stopped
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
volumes:
- ./.volumes/pgdata-${CHAIN_ID}/:/var/lib/postgresql/data

keys_api:
build: ./
platform: linux/amd64
restart: always
networks:
- devnet
environment:
- NODE_ENV=production
- PORT=${PORT}
- CORS_WHITELIST_REGEXP=${CORS_WHITELIST_REGEXP}
- GLOBAL_THROTTLE_TTL=${GLOBAL_THROTTLE_TTL}
- GLOBAL_THROTTLE_LIMIT=${GLOBAL_THROTTLE_LIMIT}
- GLOBAL_CACHE_TTL=${GLOBAL_CACHE_TTL}
- LOG_LEVEL=${LOG_LEVEL}
- LOG_FORMAT=${LOG_FORMAT}
- PROVIDERS_URLS=${PROVIDERS_URLS}
- CL_API_URLS=${CL_API_URLS}
- CHAIN_ID=${CHAIN_ID}
- DB_NAME=${DB_NAME}
- DB_PORT=5432
- DB_HOST=db
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- JOB_INTERVAL_REGISTRY=${JOB_INTERVAL_REGISTRY}
- VALIDATOR_REGISTRY_ENABLE=${VALIDATOR_REGISTRY_ENABLE}
- JOB_INTERVAL_VALIDATORS_REGISTRY=${JOB_INTERVAL_VALIDATORS_REGISTRY}
ports:
- '${PORT}:${PORT}'
depends_on:
- db

# volumes:
# db-data:

0 comments on commit b649c4f

Please sign in to comment.