-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.mac.yml
More file actions
45 lines (41 loc) · 949 Bytes
/
docker-compose.mac.yml
File metadata and controls
45 lines (41 loc) · 949 Bytes
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
version: "3.8"
services:
db:
container_name: nutfes-seeft-db
image: postgres
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'
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]