forked from esimonetti/SugarDockerized
-
Notifications
You must be signed in to change notification settings - Fork 0
/
php73-mac.yml
executable file
·80 lines (78 loc) · 2.35 KB
/
php73-mac.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
79
80
version: '3'
# in this mac attempt, redis, elasticsearch and mysql files are stored within a volume (not on a bin mounted directory) and everything is delegated (priority to the containers)
services:
web1:
container_name: "sugar-web1"
image: esimonetti/sugardockerized:php7.3-apache-1.40
ports:
- "80:80"
extra_hosts:
- "docker.local:127.0.0.1"
environment:
- "APACHE_RUN_USER=sugar"
- "APACHE_RUN_GROUP=sugar"
volumes:
- ../../data/app:/var/www/html:delegated
depends_on:
- mysql
- elasticsearch
- redis
- permissions
links:
- mysql
- elasticsearch
- redis
cron:
container_name: "sugar-cron"
image: esimonetti/sugardockerized:php7.3-cron-1.40
volumes:
- ../../data/app:/var/www/html:delegated
depends_on:
- mysql
- elasticsearch
- redis
- permissions
links:
- mysql
- elasticsearch
- redis
mysql:
container_name: "sugar-mysql"
image: esimonetti/sugardockerized:mysql5.7-1.06
ports:
- "3306:3306"
volumes:
- sugar-mysql-data:/var/lib/mysql:delegated
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=sugar
- MYSQL_PASSWORD=sugar
elasticsearch:
container_name: "sugar-elasticsearch"
image: esimonetti/sugardockerized:elasticsearch6.2-1.07
volumes:
- sugar-elasticsearch-data:/usr/share/elasticsearch/data:delegated
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "TAKE_FILE_OWNERSHIP=true"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
redis:
container_name: "sugar-redis"
image: redis:latest
volumes:
- sugar-redis-data:/data:delegated
permissions:
container_name: "sugar-permissions"
image: esimonetti/sugardockerized:permissions-1.19
volumes:
- ../../data/app:/var/www/html:delegated
volumes:
sugar-mysql-data:
sugar-redis-data:
sugar-elasticsearch-data: