-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (67 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
72 lines (67 loc) · 1.52 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
services:
database:
image: mariadb:11.4
container_name: mariadb_server
ports:
- "3306:3306"
env_file:
- .env
environment:
- MARIADB_DATABASE=hyperion
- MARIADB_USER=${MARIADB_USER:-hyperion}
- MARIADB_PASSWORD=${MARIADB_PASSWORD:-hyperion}
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD:-hyperion_root}n
- MARIADB_USER=hyperion
restart: unless-stopped
volumes:
- mariadb_data:/var/lib/mysql
redis:
image: redis:8.4
container_name: redis_cache
ports:
- "6379:6379"
command: /bin/sh -c "redis-server --requirepass $$REDIS_PASSWORD"
env_file:
- .env
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "redis-cli -a $$REDIS_PASSWORD ping"]
interval: 5s
timeout: 3s
retries: 5
backend:
build: ./backend
container_name: backend_app
ports:
- "2468:2468"
env_file:
- .env
environment:
- DB_HOST=database
- REDIS_HOST=redis
depends_on:
- database
- redis
restart: unless-stopped
frontend:
build: ./frontend
container_name: frontend_html
ports:
- "8080:80"
depends_on:
- backend
restart: unless-stopped
pma:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin_gui
ports:
- "8081:80"
environment:
- PMA_HOST=database
- PMA_PORT=3306
- UPLOAD_LIMIT=64M
depends_on:
- database
restart: unless-stopped
volumes:
mariadb_data: