-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathdocker-compose.yml
77 lines (71 loc) · 1.62 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
x-cache-from:
- &cache-from
cache_from:
- ${NGINX_IMAGE:-bewelcome/nginx}
- ${PHP_IMAGE:-bewelcome/php}
services:
php:
build:
context: .
target: bewelcome_php_dev
<<: *cache-from
image: ${PHP_IMAGE:-bewelcome/php}
healthcheck:
interval: 10s
timeout: 3s
retries: 3
start_period: 30s
test: ["NONE"]
depends_on:
- db
- manticore
- mailer
volumes:
- .:/srv/bewelcome:rw,cached
- ./docker/php/conf.d/bewelcome.dev.ini:/usr/local/etc/php/conf.d/bewelcome.ini
# if you develop on Linux, you may use a bind-mounted host directory instead
# - ./var:/srv/bewelcome/var:rw
web:
build:
context: .
target: bewelcome_nginx
<<: *cache-from
image: ${NGINX_IMAGE:-bewelcome/nginx}
depends_on:
- php
volumes:
- ./public:/srv/bewelcome/public:ro
db:
image: mariadb:11.6.2
environment:
MYSQL_ROOT_PASSWORD: bewelcome_root_dev
MYSQL_DATABASE: bewelcome
MYSQL_USER: bewelcome
MYSQL_PASSWORD: bewelcome
volumes:
- db-data:/var/lib/mysql:rw
manticore:
container_name: manticore
image: manticoresearch/manticore:6.3.8
environment:
- EXTRA=1
restart: always
ports:
- 127.0.0.1:9306:9306
- 127.0.0.1:9308:9308
- 127.0.0.1:9312:9312
ulimits:
nproc: 65535
nofile:
soft: 65535
hard: 65535
memlock:
soft: -1
hard: -1
volumes:
- manticore-data:/var/lib/manticore:rw
mailer:
image: tophfr/mailcatcher
volumes:
db-data: {}
manticore-data: {}