-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
47 lines (45 loc) · 1.06 KB
/
compose.yml
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
services:
svelte-kit:
build:
context: .
dockerfile: ./docker/bun/Dockerfile
volumes:
- ./:/home/bun/fyc-svelte-kit
depends_on:
mariadb:
condition: service_healthy
stdin_open: true
tty: true
restart: unless-stopped
container_name: fyc-svelte-kit
ports:
- 5173:5173
- 4173:4173
mariadb:
image: mariadb:11.1.2
restart: unless-stopped
container_name: fyc-mariadb
volumes:
- ./data/mysql:/var/lib/mysql
environment:
MARIADB_DATABASE: '${MARIADB_DATABASE:?err}'
MARIADB_ROOT_PASSWORD: '${MARIADB_ROOT_PASSWORD:?err}'
healthcheck:
test: ['CMD', 'mariadb-admin', 'ping', '-h', 'localhost']
interval: 10s
timeout: 20s
retries: 5
start_period: 60s
phpmyadmin:
image: phpmyadmin:latest
restart: unless-stopped
container_name: fyc-phpmyadmin
ports:
- 8080:80
depends_on:
mariadb:
condition: service_healthy
environment:
PMA_ARBITRARY: 1
UPLOAD_LIMIT: 512M
MAX_EXECUTION_TIME: 300