-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
102 lines (99 loc) · 2.28 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
services:
db:
container_name: project-cyan-mongo
image: mongo:4.4
restart: always
environment:
- TZ
- MONGO_INITDB_ROOT_USERNAME
- MONGO_INITDB_ROOT_PASSWORD
ports:
- 27017:27017
volumes:
- dbdata:/data/db
redis:
container_name: project-cyan-redis
build:
context: ./config/redis/
dockerfile: Dockerfile
pull_policy: build
restart: always
environment:
- TZ
ports:
- 6379:6379
volumes:
- redis:/data
redisinsight:
container_name: project-cyan-redisinsight
image: redis/redisinsight:latest
restart: always
ports:
- 5540:5540
volumes:
- redisinsight:/data
web:
build: &build
context: .
dockerfile: Dockerfile
secrets:
- TZ
- RAILS_ENV
- NODE_ENV
- RAILS_MASTER_KEY
- RAILS_ASSET_HOST
container_name: project-cyan-app
image: aldwin7894/project-cyan:prod
restart: always
depends_on:
- db
- redis
- sidekiq
ports:
- 3000:3000
environment: &env
- DATABASE_URL=mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@db:27017/${MONGO_DB}
- REDIS_URL=redis://redis:6379
- TZ
- RAILS_MASTER_KEY
- RAILS_ENV
- NODE_ENV
- RAILS_ASSET_HOST
- DISCORDRB_NONACL=true
- RACK_TIMEOUT_SERVICE_TIMEOUT=60
- RACK_TIMEOUT_WAIT_TIMEOUT=60
- RUBY_GC_HEAP_GROWTH_FACTOR=1.1
- RUBY_GC_MALLOC_LIMIT=4000100
- RUBY_GC_MALLOC_LIMIT_GROWTH_FACTOR=1.1
- RUBY_GC_MALLOC_LIMIT_MAX=16000100
- RUBY_GC_OLDMALLOC_LIMIT=16000100
- RUBY_GC_OLDMALLOC_LIMIT_MAX=16000100
- VITE_RUBY_SKIP_ASSETS_PRECOMPILE_EXTENSION=true
sidekiq:
build: *build
container_name: project-cyan-sidekiq
image: aldwin7894/project-cyan:prod
entrypoint: /usr/src/app/entrypoint-sidekiq.sh
command: "bin/sidekiq"
healthcheck:
test: ["NONE"]
restart: always
depends_on:
- db
- redis
environment: *env
volumes:
dbdata:
redis:
redisinsight:
secrets:
TZ:
environment: TZ
RAILS_ENV:
environment: RAILS_ENV
NODE_ENV:
environment: NODE_ENV
RAILS_MASTER_KEY:
environment: RAILS_MASTER_KEY
RAILS_ASSET_HOST:
environment: RAILS_ASSET_HOST