2021-10-25 15:46:47 +02:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
database:
|
|
|
|
image: mariadb:10.6
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ./run/database:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
MARIADB_RANDOM_ROOT_PASSWORD: "yes"
|
|
|
|
MYSQL_DATABASE: "cerebrate"
|
|
|
|
MYSQL_USER: "cerebrate"
|
|
|
|
MYSQL_PASSWORD: "etarberec"
|
|
|
|
www:
|
2021-10-25 18:00:33 +02:00
|
|
|
image: ghcr.io/cerebrate-project/cerebrate:main
|
2021-10-25 15:46:47 +02:00
|
|
|
ports:
|
|
|
|
- "8080:80"
|
|
|
|
volumes:
|
|
|
|
- ./run/logs:/var/www/html/logs
|
2021-12-17 12:39:18 +01:00
|
|
|
- ./wait-for-it.sh:/usr/local/bin/wait-for-it.sh:ro
|
|
|
|
entrypoint: wait-for-it.sh -t 0 -h database -p 3306 -- /entrypoint.sh
|
2021-10-25 15:46:47 +02:00
|
|
|
environment:
|
|
|
|
DEBUG: "true"
|
|
|
|
CEREBRATE_DB_USERNAME: "cerebrate"
|
|
|
|
CEREBRATE_DB_PASSWORD: "etarberec"
|
|
|
|
CEREBRATE_DB_NAME: "cerebrate"
|
|
|
|
CEREBRATE_DB_HOST: database
|
|
|
|
CEREBRATE_SECURITY_SALT: supersecret
|
|
|
|
depends_on:
|
|
|
|
- database
|