-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
84 lines (76 loc) · 1.84 KB
/
docker-compose.yaml
File metadata and controls
84 lines (76 loc) · 1.84 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
version: "3"
services:
mysql:
image: mysql
env_file:
- ./configuration/mysql.env
volumes:
- ${MYSQL_DIRECTORY}:/var/lib/mysql
restart: always
healthcheck:
test: "/usr/bin/mysql --user=$$MYSQL_USER --password=$$MYSQL_PASSWORD --execute \"SELECT 1;\""
interval: 2s
timeout: 20s
retries: 10
redis:
logging:
driver: none
image: redis
env_file:
- ./configuration/redis.env
restart: always
# command: "redis-server --port ${REDIS_PORT}"
volumes:
- ${REDIS_DIRECTORY}:/data
healthcheck:
test: "redis-cli -p ${REDIS_PORT} ping"
interval: 2s
timeout: 20s
retries: 10
ognisko:
image: ognisko:latest
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_healthy
meilisearch:
condition: service_healthy
restart: always
# Inject config specific variables.
environment:
- OGNISKO_HTTP_HOST=0.0.0.0
- OGNISKO_HTTP_PORT=80
- MYSQL_HOST=mysql
- MYSQL_TCP_PORT=3306
- REDIS_HOST=redis
- REDIS_TCP_PORT=6379
- MEILI_HOST=meilisearch
- MEILI_PORT=80
env_file:
- ./configuration/redis.env
- ./configuration/mysql.env
- ./configuration/ognisko.env
- ./configuration/meili.env
volumes:
- ${OGNISKO_DIRECTORY}:/data
meilisearch:
image: getmeili/meilisearch:v1.3.1
restart: always
volumes:
- ${MEILI_DIRECTORY}:/meili_data
environment:
- MEILI_MASTER_KEY=${MEILI_KEY}
- MEILI_HTTP_ADDR=0.0.0.0:80
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "${PHPMYADMIN_PORT}:80"
environment:
- PMA_HOST=mysql
- PMA_PORT=3306
env_file:
- ./configuration/phpmyadmin.env
depends_on:
mysql:
condition: service_healthy