-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
78 lines (78 loc) · 1.98 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: "3.7"
services:
laravel:
build:
context: .
dockerfile: Dockerfile
depends_on:
- mysql
container_name: ${COMPOSE_PROJECT_NAME}_laravel
command: ["/wait-for-it.sh", "${COMPOSE_PROJECT_NAME}_mysql:3306", "--", "/docker-entry.sh"]
ports:
- 80:80
- 443:443
environment:
- APP_NAME=${COMPOSE_PROJECT_NAME}
- APP_ENV=local
- NODE_ENV=development
- DB_CONNECTION=mysql
- DB_HOST=${COMPOSE_PROJECT_NAME}_mysql
- DB_PORT=${MASTER_DB_PORT}
- DB_DATABASE=${MASTER_DB_DATABASE}
- DB_USERNAME=${MASTER_DB_USERNAME}
- DB_PASSWORD=${MASTER_DB_PASSWORD}
- REDIS_HOST=${COMPOSE_PROJECT_NAME}_redis_cache
- REDIS_PASSWORD=${MASTER_REDIS_PASSWORD}
- REDIS_PORT=${MASTER_REDIS_PORT}
volumes:
- ./application:/var/www
- ./configuration/php/local.ini:/usr/local/etc/php/conf.d/local.ini
- confd:/etc/nginx/conf.d/
- vendor:/var/www/vendor
- node_modules:/var/www/node_modules
links:
- mysql
networks:
- network
mysql:
image: mysql:5.7.22
container_name: ${COMPOSE_PROJECT_NAME}_mysql
restart: always
# expose:
# - 3306
environment:
- MYSQL_DATABASE=${MASTER_DB_DATABASE}
- MYSQL_ROOT_PASSWORD=${MASTER_MYSQL_ROOT_PASSWORD}
- MYSQL_USER=${MASTER_DB_USERNAME}
- MYSQL_PASSWORD=${MASTER_DB_PASSWORD}
ports:
- 3306:3306
volumes:
- ./configuration/mysql/low-memory-my.cnf:/etc/mysql/my.cnf
- ./dbdata/mysql:/var/lib/mysql
networks:
- network
adminer:
image: adminer
container_name: ${COMPOSE_PROJECT_NAME}_adminer
restart: always
ports:
- 8080:8080
networks:
- network
redis:
image: redis
container_name: ${COMPOSE_PROJECT_NAME}_redis_cache
environment:
- ALLOW_EMPTY_PASSWORDS=yes
expose:
- 6379
networks:
- network
volumes:
confd:
vendor:
node_modules:
networks:
network:
driver: bridge