mirror of
https://github.com/supanadit/todo.git
synced 2024-11-10 01:42:20 +00:00
25 lines
494 B
YAML
25 lines
494 B
YAML
|
version: "2"
|
||
|
services:
|
||
|
mysql:
|
||
|
image: "bitnami/mysql:8.0"
|
||
|
ports:
|
||
|
- "3306:3306"
|
||
|
volumes:
|
||
|
- "./mysql:/bitnami/mysql/data"
|
||
|
environment:
|
||
|
- MYSQL_ROOT_PASSWORD=secret
|
||
|
- MYSQL_DATABASE=todo
|
||
|
|
||
|
todo-app:
|
||
|
image: "supanadit/todo:latest"
|
||
|
ports:
|
||
|
- "80:80"
|
||
|
environment:
|
||
|
- DB_CONNECTION=mysql
|
||
|
- DB_HOST=mysql
|
||
|
- DB_PORT=3306
|
||
|
- DB_DATABASE=todo
|
||
|
- DB_USERNAME=root
|
||
|
- DB_PASSWORD=secret
|
||
|
depends_on:
|
||
|
- mysql
|