-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.mac.yml
More file actions
81 lines (76 loc) · 1.91 KB
/
docker-compose.mac.yml
File metadata and controls
81 lines (76 loc) · 1.91 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
version: "3.8"
services:
db:
container_name: nutfes-seeft-db
image: postgres:18
volumes:
- ./mysql/db:/docker-entrypoint-initdb.d/ # 初期データ
- ./my.cnf:/etc/mysql/conf.d/my.cnf
environment:
POSTGRES_DB: seeft_db
POSTGRES_USER: seeft
POSTGRES_PASSWORD: password
TZ: 'Asia/Tokyo'
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 10
ports:
- 5432:5432
api:
container_name: nutfes-seeft-api
build: ./api
volumes:
- ./api:/app
env_file: ["./api/env/dev.env"]
#シェルスクリプトを実行するコマンド
command: "./start.sh"
ports:
- "1234:1234"
stdin_open: true
tty: true
depends_on:
db:
condition: service_started
admin:
container_name: "nutfes-seeft-admin"
build: ./admin
volumes:
- ./admin:/app
command: sh -c "npm install && npm run dev"
ports:
- "3000:3000"
stdin_open: true
tty: true
depends_on: [api]
schemaspy:
container_name: nutfes-seeft-schemaspy
image: schemaspy/schemaspy:latest
depends_on:
db:
condition: service_healthy
environment:
SCHEMASPY_HOST: ${SCHEMASPY_HOST:-db}
SCHEMASPY_PORT: ${SCHEMASPY_PORT:-5432}
SCHEMASPY_DB: ${SCHEMASPY_DB:-seeft_db}
SCHEMASPY_USER: ${SCHEMASPY_USER:-seeft}
SCHEMASPY_PASSWORD: ${SCHEMASPY_PASSWORD:-password}
SCHEMASPY_SCHEMA: ${SCHEMASPY_SCHEMA:-public}
volumes:
- ./api/docs/schemaspy:/output
command:
- "-t"
- "pgsql"
- "-host"
- "${SCHEMASPY_HOST:-db}"
- "-port"
- "${SCHEMASPY_PORT:-5432}"
- "-db"
- "${SCHEMASPY_DB:-seeft_db}"
- "-u"
- "${SCHEMASPY_USER:-seeft}"
- "-p"
- "${SCHEMASPY_PASSWORD:-password}"
- "-s"
- "${SCHEMASPY_SCHEMA:-public}"