-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·85 lines (81 loc) · 1.95 KB
/
docker-compose.yml
File metadata and controls
executable file
·85 lines (81 loc) · 1.95 KB
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
services:
nginx:
container_name: ${STORE_PREFIX}_nginx
image: nginx
ports:
- "80:80"
volumes:
- ./html:/var/www/html
- ./nginx.default.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- db
- php
- opensearch
links:
- opensearch
- db
- php
php:
container_name: ${STORE_PREFIX}_php
build:
context: ./php
args:
PHP_VERSION: ${PHP_VERSION}
PHP_MEMORY_LIMIT: ${PHP_MEMORY_LIMIT}
XDEBUG_VERSION: ${XDEBUG_VERSION}
volumes:
- ./html:/var/www/html
- ${COMPOSER_CACHE_PATH}:/var/www/.composer
- ./.history:/var/www/.history
depends_on:
- db
links:
- db
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- STORE_PREFIX=${STORE_PREFIX}
- PHP_IDE_CONFIG=serverName=${STORE_PREFIX}.localhost
- HISTFILE=/var/www/.history/.bash_history
db:
image: mysql:debian
container_name: ${STORE_PREFIX}_db
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=${STORE_PREFIX}_db
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/docker:/docker
- ./dumps/:/dumps
command: --max_allowed_packet=32505856
opensearch:
image: opensearchproject/opensearch:latest
container_name: ${STORE_PREFIX}_opensearch
ports:
- "9200:9200"
volumes:
- ./opensearch:/var/lib/opensearch/data
environment:
- discovery.type=single-node
- "DISABLE_SECURITY_PLUGIN=true"
mailpit:
image: axllent/mailpit
container_name: ${STORE_PREFIX}_mailpit
volumes:
- ./mailpit:/data
ports:
- 8025:8025
- 1025:1025
environment:
MP_MAX_MESSAGES: 5000
MP_DATABASE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
networks:
default:
name: 'network1'
network1:
name: ${STORE_PREFIX}-network
driver: bridge