forked from ceph/teuthology
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
81 lines (79 loc) · 2.16 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#
# 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"