-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
55 lines (51 loc) · 1.39 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
55
###############################################################################
# Generated on phpdocker.io #
###############################################################################
version: '2'
services:
sis-mysql:
build: ./mysql
user : mysql
container_name: sis-mysql
volumes:
- ./mysql/my.cnf:/etc/mysql/my.cnf
- ./mysql/Dump20190205-1:/docker-entrypoint-initdb.d
ports:
- "8106:3306"
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=openemis
- MYSQL_PASSWORD=secret
command: '--sql_mode=NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION --max_allowed_packet=32505856 '
sis:
build: ./sis-php
container_name: sis-php
volumes:
- ./sis-php/app:/var/www/apachephp
ports:
- "8180:80"
environment:
- CACHE_CAKECORE_URL=redis://cache
links:
- redis
redis:
image: redis
container_name: cache
ports:
- "0379:6379"
sis-bulk-upload:
build: ./bulk-upload
environment:
- DB_HOST=sis-mysql
- DB_USERNAME=root
- DB_DATABASE=openemis
- DB_PASSWORD=secret
depends_on:
- sis-mysql
ports:
- 8000:80
volumes:
- ./bulk-upload:/var/www/html
restart: always
mem_limit: 1024m
# command : php artisan key:generate