2022-05-06 04:40:43 +03:00
|
|
|
---
|
2022-05-21 23:40:22 +03:00
|
|
|
# development config
|
2022-05-06 04:40:43 +03:00
|
|
|
version: "3.4"
|
|
|
|
|
2022-05-06 04:57:37 +03:00
|
|
|
services:
|
2022-10-07 05:15:53 +03:00
|
|
|
# manage the databases with a user friendly interface
|
|
|
|
# it is slightly dangerous with "drop all" as a single click
|
|
|
|
dev-adminer:
|
|
|
|
image: adminer
|
2022-05-06 04:57:37 +03:00
|
|
|
ports:
|
2022-10-07 05:15:53 +03:00
|
|
|
- 18306:8080
|
|
|
|
environment:
|
|
|
|
ADMINER_DEFAULT_SERVER: dev-db
|
2022-07-11 22:16:18 +03:00
|
|
|
|
2022-10-07 05:15:53 +03:00
|
|
|
# in dev we use mysql, but production will use RDS or similar
|
2022-07-11 22:16:18 +03:00
|
|
|
dev-db:
|
|
|
|
image: mysql
|
|
|
|
environment:
|
2022-07-26 03:38:00 +03:00
|
|
|
MYSQL_ROOT_PASSWORD: dev_web3_proxy
|
2022-07-26 07:53:38 +03:00
|
|
|
MYSQL_DATABASE: dev_web3_proxy
|
2022-07-26 03:38:00 +03:00
|
|
|
ports:
|
2022-08-06 08:49:52 +03:00
|
|
|
- 127.0.0.1:13306:3306
|
2022-07-26 07:53:38 +03:00
|
|
|
volumes:
|
|
|
|
- ./data/dev_mysql:/var/lib/mysql
|
2022-07-11 22:16:18 +03:00
|
|
|
|
2023-01-20 08:52:43 +03:00
|
|
|
# influxdb for stats
|
|
|
|
dev-influxdb:
|
|
|
|
image: influxdb:2.6.1-alpine
|
|
|
|
environment:
|
|
|
|
DOCKER_INFLUXDB_INIT_MODE: setup
|
|
|
|
DOCKER_INFLUXDB_INIT_USERNAME: dev_web3_proxy
|
|
|
|
DOCKER_INFLUXDB_INIT_PASSWORD: dev_web3_proxy
|
|
|
|
DOCKER_INFLUXDB_INIT_ORG: dev_org
|
|
|
|
DOCKER_INFLUXDB_INIT_BUCKET: dev_web3_proxy
|
|
|
|
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: dev_web3_proxy_auth_token
|
|
|
|
ports:
|
2023-03-01 23:07:06 +03:00
|
|
|
- 127.0.0.1:18086:8086
|
2023-01-20 08:52:43 +03:00
|
|
|
volumes:
|
|
|
|
- ./data/dev_influxdb/data:/var/lib/influxdb2
|
|
|
|
- ./data/dev_influxdb/config:/etc/influxdb2
|
|
|
|
|
2023-03-03 17:58:45 +03:00
|
|
|
dev-kafka:
|
|
|
|
image: bitnami/kafka:3.4
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:19092:9092"
|
|
|
|
volumes:
|
|
|
|
- "./data/dev_kafka:/bitnami"
|
|
|
|
environment:
|
|
|
|
- KAFKA_CFG_ZOOKEEPER_CONNECT=dev-zookeeper:2181
|
|
|
|
- ALLOW_PLAINTEXT_LISTENER=yes
|
|
|
|
depends_on:
|
|
|
|
- dev-zookeeper
|
|
|
|
|
2022-10-07 05:15:53 +03:00
|
|
|
# volatile redis for storing rate limits
|
|
|
|
dev-vredis:
|
2022-07-26 03:38:00 +03:00
|
|
|
extends:
|
|
|
|
file: docker-compose.common.yml
|
2022-10-07 05:15:53 +03:00
|
|
|
service: volatile_redis
|
2022-07-26 03:38:00 +03:00
|
|
|
ports:
|
2022-11-13 21:39:49 +03:00
|
|
|
- 127.0.0.1:16379:6379
|
2023-03-03 17:58:45 +03:00
|
|
|
|
|
|
|
# TODO: kafka doesn't need zookeeper anymore, but all the docs still use it
|
|
|
|
dev-zookeeper:
|
|
|
|
image: bitnami/zookeeper:3.8
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:12181:2181"
|
|
|
|
volumes:
|
|
|
|
- "./data/zookeeper:/bitnami"
|
|
|
|
environment:
|
|
|
|
- ALLOW_ANONYMOUS_LOGIN=yes
|