This repository has been archived on 2024-06-08. You can view files and clone it, but cannot push or open issues or pull requests.
powd/docker-compose.yml

36 lines
960 B
YAML
Raw Normal View History

2023-08-03 17:11:09 +05:30
# 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
2023-08-04 14:38:17 +05:30
command: >-
powd avg-generate --start 100000000 --max 110000000 --trials 40 --db=postgres://postgres:password@powd_postgres:5432/postgres --conn 48 --step 10000
2023-08-03 17:11:09 +05:30
environment:
DATABASE_URL: postgres://postgres:password@powd_postgres:5432/postgres # set password at placeholder
RUST_LOG: debug
depends_on:
2023-08-04 14:38:17 +05:30
powd_postgres:
condition: service_healthy
2023-08-03 17:11:09 +05:30
powd_postgres:
image: postgres:13.2
2023-08-04 14:38:17 +05:30
ports:
- 5400:5432
2023-08-03 17:11:09 +05:30
volumes:
- powd-data:/var/lib/postgresql/
environment:
POSTGRES_PASSWORD: password # change password
PGDATA: /var/lib/postgresql/data/powd/
2023-08-04 14:38:17 +05:30
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
2023-08-03 17:11:09 +05:30
volumes:
powd-data: