Files
pricebuddy/docker-compose.yml

59 lines
1.9 KiB
YAML
Executable File

services:
app:
build:
context: .
dockerfile: docker/php.dockerfile
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
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: