mirror of
https://github.com/supanadit/todo.git
synced 2024-11-22 01:56:21 +00:00
26 lines
470 B
YAML
26 lines
470 B
YAML
version: "3.8"
|
|
services:
|
|
todo:
|
|
build:
|
|
context: .
|
|
dockerfile: PHP.Dockerfile
|
|
volumes:
|
|
- "./:/srv"
|
|
|
|
caddy:
|
|
image: caddy:2.5.0-alpine
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- "./Caddyfile:/etc/caddy/Caddyfile"
|
|
- "./:/srv"
|
|
|
|
mysqldb:
|
|
image: "bitnami/mysql:8.0"
|
|
ports:
|
|
- "3306:3306"
|
|
volumes:
|
|
- "./mysql:/bitnami/mysql/data"
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=secret
|
|
- MYSQL_DATABASE=todo |