-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
executable file
·54 lines (53 loc) · 1.31 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: '2.1'
services:
php:
container_name: dockerized_lara_php
build: ./docker/php
working_dir: /var/www
volumes:
- ./app/:/var/www/
- ./docker/files/dockeried_lara.ini:/usr/local/etc/php/conf.d/dockeried_lara.ini
links:
- mongo
- mysql
- redis
################NGINX################
nginx:
container_name: dockerized_lara_nginx
build: ./docker/nginx
working_dir: /etc/nginx/conf.d/
ports:
- "8001:80"
volumes:
- ./docker/files/nginx.conf:/etc/nginx/conf.d/default.conf
volumes_from:
- php
################MONGODB################
mongo:
container_name: dockerized_lara_mongo
build: ./docker/mongo
ports:
- 57017:27017
volumes:
- ./app/storage/mongodb:/data/db
################REDIS################
redis:
build: ./docker/redis
container_name: dockerized_lara_redis
ports:
- "5379:6379"
################MYSQL################
#https://hub.docker.com/_/mariadb/
mysql:
image: mariadb:latest
container_name: dockerized_lara_mysql
volumes:
- ./app/storage/mysql:/var/lib/mysql
ports:
- "5306:3306"
restart: always
environment:
MYSQL_USER: lara_user
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: dockerized_lara
MYSQL_PASSWORD: root