-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
84 lines (78 loc) · 1.8 KB
/
Copy pathcompose.yaml
File metadata and controls
84 lines (78 loc) · 1.8 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
services:
server:
build:
context: ./server
dockerfile: Dockerfile
environment:
APP_ADDR: :8080
NS_MARIADB_USER: root
NS_MARIADB_PASSWORD: pass
NS_MARIADB_HOSTNAME: db
NS_MARIADB_PORT: "3306"
NS_MARIADB_DATABASE: app
AWS_ACCESS_KEY_ID: admin
AWS_SECRET_ACCESS_KEY: password
AWS_S3_BUCKET: my-bucket
AWS_ENDPOINT_URL: http://minio:9000
AWS_S3_FORCE_PATH_STYLE: "true"
DEBUG: "true"
depends_on:
db:
condition: service_healthy
develop:
watch:
- action: rebuild
path: ./
client:
build:
context: ./client
dockerfile: Dockerfile
caddy:
image: caddy:latest
ports:
- "8080:80"
volumes:
- ./docker/Caddyfile:/etc/caddy/Caddyfile:ro
depends_on:
- server
- client
db:
image: mysql:latest
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: pass
MYSQL_DATABASE: app
ports:
- "3306:3306"
expose:
- "3306"
healthcheck:
test: mysql --user=root --password=pass --execute "SHOW DATABASES;"
interval: 1s
timeout: 10s
retries: 30
adminer:
image: adminer:latest
ports:
- "8081:8080"
depends_on:
db:
condition: service_healthy
minio:
image: minio/minio:RELEASE.2025-04-22T22-12-26Z
command: server /data --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: password
volumes:
- minio_data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
volumes:
minio_data: