Skip to content

Instantly share code, notes, and snippets.

@evoliatis
Created July 28, 2022 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evoliatis/3966dba28e072cddbf52e70f20dadeb4 to your computer and use it in GitHub Desktop.
Save evoliatis/3966dba28e072cddbf52e70f20dadeb4 to your computer and use it in GitHub Desktop.
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