-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
77 lines (71 loc) · 1.56 KB
/
Copy pathcompose.yaml
File metadata and controls
77 lines (71 loc) · 1.56 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
services:
caddy:
image: caddy:latest
restart: unless-stopped
ports:
- "3000:80"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
backend:
build: ./
restart: always
environment:
TPF_PORT: "1323"
TPF_DB_USER: "root"
TPF_DB_PASS: "password"
TPF_DB_HOST: "mysql"
TPF_DB_NAME: "portfolio"
TPF_DB_PORT: "3306"
ports:
- "1323:1323"
depends_on:
mysql:
condition: service_healthy
develop:
watch:
- action: rebuild
path: ./
ui:
image: ghcr.io/traptitech/traportfolio-ui:main
restart: always
expose:
- "80"
depends_on:
- backend
dashboard:
image: ghcr.io/traptitech/traportfolio-dashboard:main
restart: always
expose:
- "80"
depends_on:
- backend
mysql:
image: mariadb:10.6.4
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: portfolio
# conohaのDBのデフォルトCharsetはutf8
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci
expose:
- "3306"
ports:
- "3306:3306"
healthcheck:
test: mysql --user=root --password=$$MYSQL_ROOT_PASSWORD --execute "SHOW DATABASES;"
interval: 5s
timeout: 5s
retries: 10
adminer:
image: adminer:standalone
restart: always
environment:
ADMINER_DEFAULT_SERVER: mysql
ADMINER_DESIGN: pepa-linha
ports:
- "3001:8080"
volumes:
caddy_data:
caddy_config: