2021-06-07 12:56:29 +00:00
|
|
|
version: '2.3'
|
|
|
|
services:
|
|
|
|
bridge1:
|
2021-09-09 07:45:04 +00:00
|
|
|
image: clickhouse/jdbc-bridge
|
2021-06-07 12:56:29 +00:00
|
|
|
command: |
|
|
|
|
/bin/bash -c 'cat << EOF > config/datasources/self.json
|
|
|
|
{
|
|
|
|
"self": {
|
|
|
|
"jdbcUrl": "jdbc:clickhouse://instance:8123/test",
|
|
|
|
"username": "default",
|
|
|
|
"password": "",
|
|
|
|
"maximumPoolSize": 5
|
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
./docker-entrypoint.sh'
|
2021-07-27 07:33:49 +00:00
|
|
|
expose:
|
|
|
|
- 9019
|
2021-06-07 12:56:29 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-s", "localhost:9019/ping"]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 3s
|
|
|
|
retries: 30
|
2021-07-27 07:33:49 +00:00
|
|
|
volumes:
|
|
|
|
- type: ${JDBC_BRIDGE_FS:-tmpfs}
|
|
|
|
source: ${JDBC_BRIDGE_LOGS:-}
|
2021-09-09 07:45:04 +00:00
|
|
|
target: /app/logs
|