Files
pricebuddy/docker-compose.yml
Jeremy Graham 0fbb6c8497 fix: address review findings on currency parsing, currency text and binlogs
- CurrencyHelper: a zero or empty integer part is never a thousands group,
  so "0.125" and ".125" read as 0.125. The fr_FR locale parser read
  "0.125" as 125.
- Store bulk locale action: say that saved prices are shown in the new
  currency and are not converted.
- MySQL binlogs: say that --skip-log-bin prevents point-in-time recovery
  from binary logs, and make deleting old binlogs an optional step.
2026-10-05 08:38:10 +11:00

60 lines
2.1 KiB
YAML
Executable File

services:
app:
image: jez500/pricebuddy:latest
ports:
- 8080:80
volumes:
- storage:/app/storage
- ./.env:/app/.env
environment:
DB_HOST: database # Name of the database service
DB_USERNAME: pricebuddy # Should match the MYSQL_USER in the database service
DB_PASSWORD: pric3buddy # Should match the MYSQL_PASSWORD in the database service
DB_DATABASE: pricebuddy # Should match the MYSQL_DATABASE in the database service
APP_USER_EMAIL: admin@example.com # Only used for seeding the database
APP_USER_PASSWORD: admin # Only used for seeding the database
SCRAPER_BASE_URL: http://scraper:3000 # Url to Name of the scrapper service
AFFILIATE_ENABLED: 'true' # See https://pricebuddy.jez.me/support-project.html
depends_on:
database:
condition: service_healthy
networks:
- default
database:
image: mysql:8.2
# PriceBuddy does not use replication. Binary logs are on by default in MySQL 8
# and are kept for 30 days, which can use many GB of disk. Without them you cannot
# do a point-in-time recovery from binary logs. Remove this line if your backups use them.
command: --skip-log-bin
environment:
MYSQL_DATABASE: pricebuddy
MYSQL_USER: pricebuddy
MYSQL_PASSWORD: pric3buddy
MYSQL_ROOT_PASSWORD: root
volumes:
- database:/var/lib/mysql
networks:
- default
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 1m
scraper:
image: jez500/seleniumbase-scrapper:latest
networks:
- default
ports:
- 3030:3000 # Optional, if you want to access the scrapper api from the host machine
volumes:
storage:
database:
networks:
default: