-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yaml
78 lines (72 loc) · 1.93 KB
/
docker-compose.yaml
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
services:
db:
container_name: doceww_db
image: mariadb:10.11
ports:
- "13306:3306"
volumes:
- .data/mariadb:/var/lib/mysql
- ./docker/mariadb/custom.cnf:/etc/mysql/conf.d/custom.cnf
- ./docker/mariadb/init:/docker-entrypoint-initdb.d
# # HACK: easy sql script running for setting up db
# - ./doceww.sql:/doceww.sql
environment:
MARIADB_ROOT_PASSWORD: root
MARIADB_DATABASE: doceww
MARIADB_USER: doceww
MARIADB_PASSWORD: password
healthcheck:
test: mysql doceww -u doceww -ppassword -e 'SELECT 1;' || exit 1
interval: 2s
retries: 120
meilisearch:
container_name: doceww_meilisearch
image: getmeili/meilisearch:v1.11.3
ports:
- "7700:7700"
volumes:
- .data/meilisearch:/meili_data
environment:
MEILI_MASTER_KEY: password
app:
container_name: doceww_app
# image: dhil/doceww
build:
context: .
target: doceww
ports:
- "8080:80"
volumes:
# code for development
- .:/var/www/html
# use the container's var (for cache, etc)
- /var/www/html/var
# persist file uploads in .data
- .data/app/data:/var/www/html/data
# persist logs
- .data/app/log:/var/www/html/var/log
# use the container's node_modules & vendor folders (don't override)
- /var/www/html/public/node_modules
- /var/www/html/public/bundles
- /var/www/html/vendor
healthcheck:
test: curl --fail http://localhost/health.php || exit 1
interval: 2s
retries: 120
depends_on:
db:
condition: service_healthy
docs:
container_name: doceww_docs_watcher
build:
context: .
target: doceww-docs
command: sphinx-autobuild source _site/
volumes:
- ./docs:/app
- ./public/docs/sphinx:/app/_site
mail:
container_name: doceww_mail
image: jcalonso/mailhog:v1.0.1
ports:
- "8025:8025"