forked from baron/baron-sso
43 lines
898 B
YAML
43 lines
898 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:15-alpine
|
|
container_name: baron_postgres
|
|
environment:
|
|
POSTGRES_USER: ${DB_USER:-baron}
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD:-password}
|
|
POSTGRES_DB: ${DB_NAME:-baron_sso}
|
|
ports:
|
|
- "${DB_PORT:-5432}:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
networks:
|
|
- baron_net
|
|
restart: always
|
|
|
|
clickhouse:
|
|
image: clickhouse/clickhouse-server:latest
|
|
container_name: baron_clickhouse
|
|
ports:
|
|
- "${CLICKHOUSE_PORT_HTTP:-8123}:8123"
|
|
- "${CLICKHOUSE_PORT_NATIVE:-9000}:9000"
|
|
ulimits:
|
|
nofile:
|
|
soft: 262144
|
|
hard: 262144
|
|
volumes:
|
|
- clickhouse_data:/var/lib/clickhouse
|
|
networks:
|
|
- baron_net
|
|
restart: always
|
|
|
|
networks:
|
|
baron_net:
|
|
name: baron_network
|
|
driver: bridge
|
|
|
|
volumes:
|
|
postgres_data:
|
|
clickhouse_data:
|