forked from OpenXE-org/OpenXE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (61 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
62 lines (61 loc) · 1.23 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
version: '3.9'
services:
vite:
build:
context: .
dockerfile: docker/Dockerfile
target: frontend
image: openxe_frontend
entrypoint: npm run dev
volumes:
- .:/app
ports:
- "5173:5173"
app_init:
image: openxe:test
volumes:
- .:/var/www/html
working_dir: /var/www/html/upgrade
entrypoint: php data/upgrade.php -db -do
depends_on:
mysql:
condition: service_healthy
app:
build:
context: .
dockerfile: docker/Dockerfile
image: openxe:test
volumes:
- .:/var/www/html
ports:
- "8081:80"
depends_on:
app_init:
condition: service_completed_successfully
mysql:
condition: service_healthy
mysql:
image: mariadb:10.11
environment:
MYSQL_ROOT_PASSWORD: "rootpw"
MYSQL_USER: "openxe"
MYSQL_PASSWORD: "openxe"
MYSQL_DATABASE: "openxe"
MARIADB_AUTO_UPGRADE: "1"
volumes:
- mysqldata:/var/lib/mysql
ports:
- "3306:3306"
healthcheck:
interval: 5s
retries: 3
test:
[
"CMD",
"healthcheck.sh",
"--connect",
"--innodb_initialized"
]
timeout: 30s
volumes:
mysqldata: {}