-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
119 lines (115 loc) · 2.59 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: "3.9"
services:
db:
container_name: project-cyan-mongo
image: mongo:4.4.6
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: redislabs/redisinsight:latest
restart: always
ports:
- 8001:8001
volumes:
- redisinsight:/db
web:
build:
context: .
dockerfile: Dockerfile
secrets:
- TZ
- RAILS_ENV
- NODE_ENV
- OCCSON_ACCESS_TOKEN
- OCCSON_PASSPHRASE
- 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:
- DATABASE_URL=mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@db:27017/${MONGO_DB}
- REDIS_URL=redis://redis:6379
- TZ=Asia/Manila
- RAILS_MASTER_KEY
- RAILS_ENV
- NODE_ENV
- RAILS_ASSET_HOST
- OCCSON_ACCESS_TOKEN
- OCCSON_PASSPHRASE
sidekiq:
build:
context: .
dockerfile: Dockerfile
secrets:
- TZ
- RAILS_ENV
- NODE_ENV
- OCCSON_ACCESS_TOKEN
- OCCSON_PASSPHRASE
- RAILS_MASTER_KEY
- RAILS_ASSET_HOST
container_name: project-cyan-sidekiq
image: aldwin7894/project-cyan:prod
entrypoint: /usr/src/app/entrypoint-sidekiq.sh
command: "bin/sidekiq"
restart: always
depends_on:
- db
- redis
environment:
- DATABASE_URL=mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@db:27017/${MONGO_DB}
- REDIS_URL=redis://redis:6379
- TZ=Asia/Manila
- RAILS_MASTER_KEY
- RAILS_ENV
- NODE_ENV
- RAILS_ASSET_HOST
- OCCSON_ACCESS_TOKEN
- OCCSON_PASSPHRASE
volumes:
dbdata:
redis:
redisinsight:
secrets:
TZ:
environment: TZ
RAILS_ENV:
environment: RAILS_ENV
NODE_ENV:
environment: NODE_ENV
OCCSON_ACCESS_TOKEN:
environment: OCCSON_ACCESS_TOKEN
OCCSON_PASSPHRASE:
environment: OCCSON_PASSPHRASE
RAILS_MASTER_KEY:
environment: RAILS_MASTER_KEY
RAILS_ASSET_HOST:
environment: RAILS_ASSET_HOST