-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 913 Bytes
/
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
services:
db:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: ${DATABASE_PASSWORD}
MYSQL_DATABASE: ${DATABASE_NAME}
MYSQL_USER: ${DATABASE_USERNAME}
MYSQL_PASSWORD: ${DATABASE_PASSWORD}
volumes:
- db_data:/var/lib/mysql
ports:
- "3306:3306"
web:
build:
context: .
command: bash -c "rm -f tmp/pids/server.pid && rails server -b 0.0.0.0"
volumes:
- .:/app
ports:
- "3000:3000"
depends_on:
- db
- ocr_service
environment:
DATABASE_HOST: ${DATABASE_HOST}
DATABASE_USERNAME: ${DATABASE_USERNAME}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
DATABASE_NAME: ${DATABASE_NAME}
DATABASE_PORT: ${DATABASE_PORT}
SERVICE_URL: ${SERVICE_URL}
ocr_service:
build:
context: ./lib/ocr
volumes:
- ./lib/ocr:/app
ports:
- "5001:5001"
volumes:
db_data: