short-url/docker-compose.yml

27 lines
519 B
YAML
Raw Normal View History

2022-02-06 07:45:02 +00:00
version: "2"
services:
mysql:
image: "bitnami/mysql:8.0"
ports:
- "3306:3306"
volumes:
- "./mysql:/bitnami/mysql/data"
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=short
2022-05-02 14:30:06 +00:00
short-app:
build:
context: .
dockerfile: Dockerfile
2022-02-06 07:45:02 +00:00
ports:
- "80:80"
environment:
- DB_CONNECTION=mysql
- DB_HOST=mysql
- DB_PORT=3306
- DB_DATABASE=short
- DB_USERNAME=root
- DB_PASSWORD=secret
depends_on:
- mysql