-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.example
65 lines (64 loc) · 1.76 KB
/
docker-compose.yml.example
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
65
services:
rails:
build:
context: .
dockerfile: Dockerfile
environment:
DATABASE_URL: postgresql://postgres@postgres:5432/kube_cake_production
REDIS_URL: redis://redis:6379/0
RAILS_ENV: production
APPLICATION_TITLE: KubeCake
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY:
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY:
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT:
SECRET_KEY_BASE_DUMMY: 1
OLLAMA_SERVER_ADDRESS:
OLLAMA_MODEL: 'llama3.1'
GITHUB_APP_CLIENT_ID:
GITHUB_APP_PRIVATE_PEM:
SUPER_ADMIN_PASSWORD: ${SUPER_ADMIN_PASSWORD}
ports:
- "3000:3000"
expose:
- "3000"
sidekiq:
build:
context: .
dockerfile: Dockerfile
environment:
DATABASE_URL: postgresql://postgres@postgres:5432/kube_cake_production
REDIS_URL: redis://redis:6379/0
RAILS_ENV: production
APPLICATION_TITLE: KubeCake
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY:
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY:
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT:
SECRET_KEY_BASE_DUMMY: 1
OLLAMA_SERVER_ADDRESS:
OLLAMA_MODEL: 'llama3.1'
GITHUB_APP_CLIENT_ID:
GITHUB_APP_PRIVATE_PEM:
command: "bundle exec sidekiq -C config/sidekiq.yml"
postgres:
image: postgres:16.2
volumes:
- db_pg_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5435:5432" # Local port 5432 busy
expose:
- "5435"
environment:
POSTGRES_USER: postgres
POSTGRES_HOST_AUTH_METHOD: trust
redis:
image: redis:7.2.4
ports:
- "6399:6379" # Local port 6379 busy
expose:
- "6399"
volumes:
- redis_data:/var/lib/redis/data
volumes:
db_pg_data:
redis_data: