-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 1.12 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
version: '3'
services:
db:
image: postgres:13
platform: linux/amd64
environment:
TZ: Asia/Tokyo
POSTGRES_PASSWORD: password
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- 5433:5432
web:
build: .
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
tty: true
stdin_open: true
volumes:
- .:/recipi_ai_assistant:delegated
- bundle_data:/usr/local/bundle:cached
- node_modules:/recipi_ai_assistant/node_modules:cached
- /recipi_ai_assistant/vendor
- /recipi_ai_assistant/tmp
- /recipi_ai_assistant/log
- /recipi_ai_assistant/.git
environment:
TZ: Asia/Tokyo
SELENIUM_DRIVER_URL: http://chrome:4444/wd/hub
NODE_OPTIONS: --openssl-legacy-provider
DATABASE_URL: postgres://postgres:password@db:5432/recipi_ai_assistant_development
ports:
- "3000:3000"
depends_on:
- db
- chrome
chrome:
image: seleniarm/standalone-chromium:latest
shm_size: 512m
ports:
- 4444:4444
volumes:
postgres_data:
bundle_data:
node_modules: