-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
94 lines (90 loc) · 2.02 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
version: "3.9"
services:
db:
container_name: aldwin7894-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: aldwin7894-redis
image: redis:alpine
command: redis-server /usr/local/etc/redis/redis.conf
restart: always
environment:
- TZ
ports:
- 6379:6379
volumes:
- redis:/data
- ./config/redis.conf:/usr/local/etc/redis/redis.conf
healthcheck:
test: redis-cli ping
interval: 10s
timeout: 5s
retries: 5
redisinsight:
container_name: aldwin7894-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: aldwin7894-app
image: aldwin7894/project-cyan:prod
restart: always
depends_on:
- db
- redis
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
# trunk-ignore-begin(yamllint/empty-values)
volumes:
dbdata:
redis:
redisinsight:
# trunk-ignore-end(yamllint/empty-values)
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