1 Star 0 Fork 1

王增亮/teuthology

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 2.16 KB
一键复制 编辑 原始数据 按行查看 历史
#
# How to use this file
# ====================
#
# Before moving forward the docker must be installed and your user
# must be in docker group, for example for openSUSE do the following:
#
# sudo zypper in docker
# sudo usermod -a -G docker $USER
#
# Note: to activate user group relogin might be required.
#
# Create a directory where the development setup be located.
# Go to the directory and checkout pulpito, paddles, and teuthology.
#
# git clone https://github.com/ceph/paddles
# git clone https://github.com/ceph/pulpito
# git clone https://github.com/ceph/teuthology
#
# Note: use your own repos or branches.
#
# Go to teuthology, bootstrap virtual environment and install docker-composer.
#
# cd teuthology
# ./bootstrap
# . virtualenv/bin/activate
# pip install docker-compose
#
# Make sure docker is running, build images for postgres, paddles, pulpito and beanstalk.
#
# sudo systemctl start docker
# docker-compose build
#
# Run the services:
#
# docker-compose up
#
# Todo: add worker or/and dispatcher service
version: "3.7"
services:
postgres:
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: secret
POSTGRES_USER: paddles
POSTGRES_DB: paddles
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- $HOME/.teuthology/postgres:/var/lib/postgresql/data
healthcheck:
test: |
psql -h localhost -U paddles -c 'SELECT 1=1' paddles
timeout: 60s
interval: 5s
start_period: 10s
paddles:
build: ../paddles
environment:
PADDLES_SERVER_HOST: 0.0.0.0
PADDLES_SQLALCHEMY_URL: postgresql+psycopg2://paddles:secret@postgres/paddles
ports:
- "8180:8080"
depends_on:
postgres:
condition: service_healthy
pulpito:
build: ../pulpito
environment:
PULPITO_PADDLES_ADDRESS: http://paddles:8080
ports:
- "8081:8081"
depends_on:
- paddles
beanstalk:
build: beanstalk/alpine
ports:
- "11300:11300"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/wangzengliang1/teuthology.git
git@gitee.com:wangzengliang1/teuthology.git
wangzengliang1
teuthology
teuthology
main

搜索帮助