-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (59 loc) · 1.2 KB
/
docker-compose.yml
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
version: "3.8"
services:
db:
image: mysql:8.0.22
env_file:
- ./environments/db.env
volumes:
- db-data:/var/lib/mysql
ports:
- 3306:3306
command: --default-authentication-plugin=mysql_native_password
api:
build:
context: .
env_file:
- ./environments/db.env
- ./environments/ruby.env
volumes:
- .:/Short-Diary
- public-data:/Short-Diary/public
- tmp-data:/Short-Diary/tmp
- storage-data:/Short-Diary/storage
ports:
- 3001:3001
tty: true
# command: zsh -c "bundle exec rails s -e production"
command: zsh -c "bundle exec pumactl start"
depends_on:
- db
front:
build:
context: ./frontend
volumes:
- ./frontend:/frontend
ports:
- 3000:3000
tty: true
user: "1000:1000"
command: zsh -c 'yarn install --frozen-lockfile && /bin/zsh'
depends_on:
- api
nginx:
build:
context: ./nginx
volumes:
- public-data:/Short-Diary/public
- tmp-data:/Short-Diary/tmp
environment:
- HOST=localhost
ports:
- 80:80
depends_on:
- api
- front
volumes:
db-data:
public-data:
tmp-data:
storage-data: