-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
135 lines (124 loc) · 3.34 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
services:
app:
build:
args:
- DOCKER_USER=${DOCKER_USER:-user}
- DOCKER_USER_ID=${DOCKER_USER_ID:-1000}
- DOCKER_GROUP_ID=${DOCKER_GROUP_ID:-1000}
context: .
dockerfile: ./docker/app/local/Dockerfile
environment:
- VIRTUAL_HOST=core-dam.anzusystems.local,image.anzusystemsdata.local,admin-image.anzusystemsdata.local
- VIRTUAL_PORT=${NGINX_PORT:-8130}
- NGINX_PORT=${NGINX_PORT:-8130}
external_links:
- local-proxy:core-dam.anzusystems.local
env_file:
- .env.docker.dist
- .env.docker.local
volumes:
- .:/var/www/html:cached
- ./tests/coverage:/opt/phpstorm-coverage:cached
ports:
- ${NGINX_PORT:-8130}:${NGINX_PORT:-8130}
hostname: core-dam
networks:
anzusystems_network:
aliases:
- core-dam
app-cron:
build:
args:
- DOCKER_USER=${DOCKER_USER:-user}
- DOCKER_USER_ID=${DOCKER_USER_ID:-1000}
- DOCKER_GROUP_ID=${DOCKER_GROUP_ID:-1000}
context: .
dockerfile: ./docker/app-cron/local/Dockerfile
external_links:
- local-proxy:core-dam.anzusystems.local
env_file:
- .env.docker.dist
- .env.docker.local
volumes:
- .:/var/www/html:cached
hostname: core-dam-cron
networks:
- anzusystems_network
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.15.0
environment:
- cluster.routing.allocation.disk.threshold_enabled=false
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./docker/elasticsearch/vocabulary/hunspell:/usr/share/elasticsearch/config/hunspell:cached
- ./docker/elasticsearch/vocabulary/stop-words:/usr/share/elasticsearch/config/stop-words:cached
- ./docker/elasticsearch/vocabulary/synonyms:/usr/share/elasticsearch/config/synonyms:cached
- elasticsearch_data:/usr/share/elasticsearch/data:cached
ports:
- ${ELASTICSEARCH_DOCKER_PORT:-9225}:9200
hostname: elasticsearch
networks:
- anzusystems_network
mysql:
image: mysql:8.0
command:
- --default-authentication-plugin=mysql_native_password
- --disable-log-bin
env_file:
- .env.docker.dist
- .env.docker.local
volumes:
- mysql_data:/var/lib/mysql:cached
ports:
- ${MYSQL_DOCKER_PORT:-3353}:3306
hostname: mysql
networks:
- anzusystems_network
mongo:
image: mongo:7.0
command: ${MONGO_LOGAPPEND:-} ${MONGO_NOTABLESCAN:-}
env_file:
- .env.docker.dist
- .env.docker.local
volumes:
- mongo_data:/data/db:cached
ports:
- ${MONGO_DOCKER_PORT:-27517}:27017
hostname: mongo
networks:
- anzusystems_network
pubsub:
build:
context: docker/pubsub
ports:
- ${PUBSUB_DOCKER_PORT:-8238}:8538
hostname: pubsub
networks:
- anzusystems_network
redis:
image: redis:7.2
volumes:
- redis_data:/data:cached
ports:
- ${REDIS_DOCKER_PORT:-6571}:6379
hostname: redis
networks:
- anzusystems_network
volumes:
mysql_data:
driver: local
redis_data:
driver: local
elasticsearch_data:
driver: local
mongo_data:
driver: local
networks:
anzusystems_network:
external: true