version: '3.1'
services:
db-redis:
image: redis:5
restart: "no"
ports:
- "127.0.0.1:6379:6379"
volumes:
- "/home/db/redis:/data"
container_name: "db-redis"
db-mysql:
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password --sql_mode=""
restart: "no"
ports:
- "127.0.0.1:3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "db"
volumes:
- "/home/db/mysql:/var/lib/mysql"
container_name: "db-mysql"
app:
image: cyberduck/php-fpm-laravel:7.3
ports:
- "127.0.0.1:9000:9000"
volumes:
- "/home/app:/var/www/"
container_name: "app"