40 lines
852 B
YAML
40 lines
852 B
YAML
|
|
services:
|
||
|
|
glastree:
|
||
|
|
build: .
|
||
|
|
ports:
|
||
|
|
- "8080:80"
|
||
|
|
volumes:
|
||
|
|
- glastree_storage:/var/www/html/storage
|
||
|
|
depends_on:
|
||
|
|
mysql:
|
||
|
|
condition: service_healthy
|
||
|
|
environment:
|
||
|
|
- APP_ENV=production
|
||
|
|
- APP_DEBUG=false
|
||
|
|
- APP_URL=http://localhost:8080
|
||
|
|
- DB_CONNECTION=mysql
|
||
|
|
- DB_HOST=mysql
|
||
|
|
- DB_PORT=3306
|
||
|
|
- DB_DATABASE=glastree
|
||
|
|
- DB_USERNAME=glastree
|
||
|
|
- DB_PASSWORD=secret
|
||
|
|
|
||
|
|
mysql:
|
||
|
|
image: mysql:8.0
|
||
|
|
volumes:
|
||
|
|
- mysql_data:/var/lib/mysql
|
||
|
|
environment:
|
||
|
|
- MYSQL_DATABASE=glastree
|
||
|
|
- MYSQL_USER=glastree
|
||
|
|
- MYSQL_PASSWORD=secret
|
||
|
|
- MYSQL_ROOT_PASSWORD=root_secret
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
||
|
|
interval: 5s
|
||
|
|
timeout: 3s
|
||
|
|
retries: 10
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
glastree_storage:
|
||
|
|
mysql_data:
|