Skip to content

Instantly share code, notes, and snippets.

@evoliatis
Created Jul 28, 2022
Embed
What would you like to do?
Configuration docker pour stack LAMP
version: "3"
services:
mysql:
build: images/mysql
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_USER: laravel
MYSQL_PASSWORD: laravel
MYSQL_DATABASE: laravel
volumes:
- ./mysql:/var/lib/mysql
ports:
- "3306:3306"
redis:
build: images/redis
volumes:
- ./redis:/data
engine:
build: images/engine
volumes:
- ./web:/var/www/html
entrypoint:
- php-fpm
links:
- mysql
- redis
front:
build: images/front
volumes:
- ./web:/var/www/html
links:
- engine
ports:
- "8000:80"
phpmyadmin:
image: nazarpc/phpmyadmin
links:
- mysql
ports:
- "8080:80"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment