-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (55 loc) · 1.29 KB
/
docker-compose.yml
File metadata and controls
62 lines (55 loc) · 1.29 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
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
env_file: ["./api/env/dev.env"]
volumes:
- ./api:/app
#シェルスクリプトを実行するコマンド
command: "./start.sh"
ports:
- "1234:1234"
stdin_open: true
tty: true
depends_on:
db:
condition: service_started
# mobile:
# container_name: nutfes-seeft-mobile
# build: ./mobile
# volumes:
# - ./mobile:/app
# #シェルスクリプトを実行するコマンド
# command: "python3 ./python/server.py"
# ports:
# - "45029:45029"
# stdin_open: true
# tty: true
# depends_on:
# api:
# 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]