Created
November 18, 2023 22:11
-
-
Save simpl1g/a799d0c7d7e1fe47ac1aaf112ccdfd54 to your computer and use it in GitHub Desktop.
Clickhouse docker compose with volume limit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
ch_server: | |
image: clickhouse/clickhouse-server:latest | |
ports: | |
- "8123:8123" | |
- "9000:9000" | |
volumes: | |
- ch_data:/var/lib/clickhouse | |
- type: bind | |
source: ./settings/users.xml | |
target: /etc/clickhouse-server/users.d/users.xml | |
volumes: | |
ch_data: | |
driver_opts: | |
o: "size=900m" | |
device: tmpfs | |
type: tmpfs |
Author
simpl1g
commented
Nov 18, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment