-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 1.07 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
version: '3'
services:
api:
build:
context: .
dockerfile: Dockerfile
container_name: api
environment:
PORT: 9292
ENCRYPTION_KEY: 'e768d1c67d6db8ee24d5ba7de6a32f56'
RUBY_YJIT_ENABLE: 1
DB_HOST: postgres
DB_PORT: 5432
DB_NAME: fraud_detection_development
DB_USER: postgres
DB_PASSWORD: password
DB_POOL_SIZE: 10
WEB_CONCURRENCY: 2
RACK_ENV: development
REDIS_HOST: redis
REDIS_POOL_SIZE: 50
ports:
- "9292:9292"
depends_on:
- postgres
- redis
postgres:
image: postgres
container_name: postgres
environment:
POSTGRES_DB: fraud_detection_development
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
# - ./init.sql:/docker-entrypoint-initdb.d/init.sql
redis:
image: redis:latest
container_name: redis
command: redis-server --save "" --appendonly no --maxclients 100
ports:
- "6379:6379"
volumes:
postgres_data: