35 lines
960 B
YAML
35 lines
960 B
YAML
# SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
version: "3.9"
|
|
|
|
services:
|
|
powd:
|
|
image: realaravinth/powd:latest
|
|
command: >-
|
|
powd avg-generate --start 100000000 --max 110000000 --trials 40 --db=postgres://postgres:password@powd_postgres:5432/postgres --conn 48 --step 10000
|
|
environment:
|
|
DATABASE_URL: postgres://postgres:password@powd_postgres:5432/postgres # set password at placeholder
|
|
RUST_LOG: debug
|
|
depends_on:
|
|
powd_postgres:
|
|
condition: service_healthy
|
|
|
|
powd_postgres:
|
|
image: postgres:13.2
|
|
ports:
|
|
- 5400:5432
|
|
volumes:
|
|
- powd-data:/var/lib/postgresql/
|
|
environment:
|
|
POSTGRES_PASSWORD: password # change password
|
|
PGDATA: /var/lib/postgresql/data/powd/
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
volumes:
|
|
powd-data:
|