forked from ilios/ilios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
85 lines (85 loc) · 2.15 KB
/
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
79
80
81
82
83
84
85
volumes:
shared-storage:
public:
var:
services:
db:
build:
context: .
target: mysql-demo
ports:
- "13306:3306"
nginx:
build:
context: .
target: nginx
environment:
- FPM_CONTAINERS=php:9000
ports:
- "8000:80"
volumes:
# The "cached" option has no effect on Linux but improves performance on Mac
- ./:/srv/app:ro,cached
- public:/srv/app/public:ro
depends_on:
- php
php:
build:
context: .
target: fpm-dev
environment:
- ILIOS_DATABASE_URL=mysql://ilios:ilios@db/ilios?serverVersion=8.0
- ILIOS_REQUIRE_SECURE_CONNECTION=false
- ILIOS_ERROR_CAPTURE_ENABLED=false
- ILIOS_SEARCH_HOSTS=opensearch:9200
- ILIOS_REDIS_URL=redis://redis
- ILIOS_FEATURE_DTO_CACHING=false
- ILIOS_FILE_SYSTEM_STORAGE_PATH=/ilios-storage
volumes:
# The "cached" option has no effect on Linux but improves performance on Mac
- ./:/srv/app:ro,cached
# Share storage between containers
- var:/srv/app/var:rw
- public:/srv/app/public:rw
- shared-storage:/ilios-storage:rw
depends_on:
- db
- redis
messages:
build:
context: .
target: consume-messages
environment:
- ILIOS_DATABASE_URL=mysql://ilios:ilios@db/ilios?serverVersion=8.0
- ILIOS_ERROR_CAPTURE_ENABLED=false
- ILIOS_SEARCH_HOSTS=opensearch:9200
- ILIOS_REDIS_URL=redis://redis
- ILIOS_FILE_SYSTEM_STORAGE_PATH=/ilios-storage
restart: always
command: [ "--time-limit", "3600", "-vv"]
depends_on:
- db
- opensearch
- redis
volumes:
# The "cached" option has no effect on Linux but improves performance on Mac
- ./:/srv/app:ro,cached
# Share storage between containers
- var:/srv/app/var:rw
- public:/srv/app/public:rw
- shared-storage:/ilios-storage:rw
opensearch:
build:
context: .
target: opensearch
environment:
- DISABLE_SECURITY_PLUGIN=true
- discovery.type=single-node
ports:
- "9200:9200"
redis:
build:
context: .
target: redis
ports:
- "6379:6379"