forked from baron/baron-sso
fc
This commit is contained in:
75
compose.infra.test2.yaml
Normal file
75
compose.infra.test2.yaml
Normal file
@@ -0,0 +1,75 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:17-alpine
|
||||
environment:
|
||||
POSTGRES_USER: ${DB_USER:-baron}
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD:-password}
|
||||
POSTGRES_DB: ${DB_NAME:-baron_sso}
|
||||
ports:
|
||||
- "${DB_PORT:-15432}:5432"
|
||||
volumes:
|
||||
- postgres_data_test2:/var/lib/postgresql/data
|
||||
- ./docker/init-metadata:/docker-entrypoint-initdb.d
|
||||
networks:
|
||||
- test2_net
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
"CMD-SHELL",
|
||||
"pg_isready -U ${DB_USER:-baron} -d ${DB_NAME:-baron_sso}",
|
||||
]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
restart: always
|
||||
|
||||
clickhouse:
|
||||
image: clickhouse/clickhouse-server:latest
|
||||
restart: always
|
||||
ports:
|
||||
- "${CLICKHOUSE_PORT_HTTP:-28123}:8123"
|
||||
- "${CLICKHOUSE_PORT_NATIVE:-29000}:9000"
|
||||
volumes:
|
||||
- clickhouse_data_test2:/var/lib/clickhouse
|
||||
environment:
|
||||
CLICKHOUSE_USER: ${CLICKHOUSE_USER:-baron}
|
||||
CLICKHOUSE_PASSWORD: ${CLICKHOUSE_PASSWORD:-password}
|
||||
networks:
|
||||
- test2_net
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
restart: always
|
||||
command: redis-server --port 6399
|
||||
ports:
|
||||
- "${REDIS_PORT:-16399}:6399"
|
||||
volumes:
|
||||
- redis_data_test2:/data
|
||||
networks:
|
||||
- test2_net
|
||||
|
||||
gateway:
|
||||
build:
|
||||
context: ./gateway
|
||||
dockerfile: Dockerfile
|
||||
restart: always
|
||||
ports:
|
||||
- "25000:5000"
|
||||
networks:
|
||||
- test2_net
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:5000/"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
|
||||
volumes:
|
||||
postgres_data_test2:
|
||||
clickhouse_data_test2:
|
||||
redis_data_test2:
|
||||
|
||||
networks:
|
||||
test2_net:
|
||||
name: test2_net
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user