-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
72 lines (71 loc) · 1.91 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
version: '3'
services:
cybnb:
build: .
environment:
- PORT=${PORT}
- NODE_ENV=production
- PG_USER=${PG_USER}
- PG_PASS=${PG_PASS}
- PG_URL=postgres
- PG_DBNAME=${PG_DBNAME}
- REDIS_URL=redis
- REDIS_HOST=redis
- SESSION_SECRET=${SESSION_SECRET}
- SESSION_COOKIE_NAME=${SESSION_COOKIE_NAME}
- SESSION_EXPIRY=${SESSION_EXPIRY}
- AUTO_MIGRATE=${AUTO_MIGRATE}
- REDIS_ENABLED=${REDIS_ENABLED}
- EMAIL=${EMAIL}
- EMAIL_PASS=${EMAIL_PASS}
- RESET_URL=${RESET_URL}
- IS_LOCAL=${IS_LOCAL}
- SEED_WITH_MOCK=${SEED_WITH_MOCK}
- NO_OF_MOCK_RECORDS=${NO_OF_MOCK_RECORDS}
- AWS_ACCESS_KEY=${AWS_ACCESS_KEY}
- AWS_SECRET_KEY=${AWS_SECRET_KEY}
- AWS_REGION=${AWS_REGION}
- S3_BUCKET=${S3_BUCKET}
- S3_DP_BUCKET=${S3_DP_BUCKET}
- S3_LISTING_IMAGES_BUCKET=${S3_LISTING_IMAGES_BUCKET}
- SERVICE_NAME=${SERVICE_NAME}
- S3_MAX_FILE_SIZE=${S3_MAX_FILE_SIZE} # set 15 MB IN BYTES
- RAZORPAY_KEY_ID=${RAZORPAY_KEY_ID}
- RAZORPAY_KEY_SECRET=${RAZORPAY_KEY_SECRET}
- RAZORPAY_WEBHOOK_SECRET=${RAZORPAY_WEBHOOK_SECRET}
depends_on:
- postgres
- redis
restart: always
postgres:
image: postgres:latest
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${PG_DBNAME}
volumes:
- postgres-db:/var/lib/postgresql/data
restart: always
redis:
image: redis:latest
restart: always
volumes:
- redis-db:/data
nginx:
image: nginx:stable-alpine
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- '80:80'
depends_on:
- cybnb
redis-commander:
image: rediscommander/redis-commander
restart: always
environment:
- REDIS_HOSTS=redis
ports:
- '8081:8081'
volumes:
postgres-db:
redis-db: