version: '3'
services:
scraper-instance:
build:
context: ./docker/python
ports:
- 8080:8080
volumes:
- ./scrape-engine:/srv
command: ["python", "main.py"]
php-apache:
build:
context: ./docker/php-apache
ports:
- 80:80
volumes:
- ./frontend:/srv
links:
- 'mariadb'
mariadb:
image: mariadb:10.1
ports:
- 3306:3306
volumes:
- mariadb:/var/lib/mysql
environment:
TZ: "Australia/Brisbane"
MYSQL_ALLOW_EMPTY_PASSWORD: "no"
MYSQL_ROOT_PASSWORD: ${ROOT_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
volumes:
mariadb: