-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
97 lines (92 loc) · 2.73 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
version: '3.8'
services:
mongodb:
image: mongo
container_name: mongo-dev
restart: unless-stopped
environment:
- MONGO_INITDB_ROOT_USERNAME=$MONGODB_USER
- MONGO_INITDB_ROOT_PASSWORD=$MONGODB_PASSWORD
- MONGO_INITDB_DATABASE=$MONGODB_DBNAME
ports:
- "27017:27017"
volumes:
- ./mongo-volume:/data/db
mongo-express:
image: mongo-express
container_name: mongo-express
restart: unless-stopped
depends_on:
mongodb:
condition: service_started
api:
condition: service_started
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=$MONGODB_USER
- ME_CONFIG_MONGODB_ADMINPASSWORD=$MONGODB_PASSWORD
- ME_CONFIG_MONGODB_SERVER=mongo-dev
- ME_CONFIG_BASICAUTH_USERNAME=$MONGO_WEB_USERNAME
- ME_CONFIG_BASICAUTH_PASSWORD=$MONGO_WEB_PASSWORD
ports:
- "8081:8081"
redis:
image: redis
container_name: redis
restart: unless-stopped
ports:
- "7001:7001"
environment:
- REDIS_PORT_NUMBER=$REDIS_PORT
- REDIS_PASSWORD=$REDIS_PASSWORD
api:
build: ./server
container_name: api
depends_on:
- mongodb
environment:
- NODE_ENV=$API_NODE_ENV
- PORT=$API_PORT
- MONGODB_USER=$MONGODB_USER
- MONGODB_PASSWORD=$MONGODB_PASSWORD
- MONGODB_DBNAME=$MONGODB_DBNAME
- BASIC_AUTH_USER=$BASIC_AUTH_USER
- BASIC_AUTH_PASS=$BASIC_AUTH_PASS
- AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
- STRIPE_WEBHOOK_SECRET=$STRIPE_WEBHOOK_SECRET
- STRIPE_SECRET_KEY=$STRIPE_SECRET_KEY
- CLIENT_BASE_URL=$CLIENT_BASE_URL
- API_BASE_URL=$API_BASE_URL
- STRIPE_TICKET_PRICE_ID=$STRIPE_TICKET_PRICE_ID
- STRIPE_EARLY_BIRD_COUPON_ID=$STRIPE_EARLY_BIRD_COUPON_ID
- STRIPE_RETREAT_PRICE_ID=$STRIPE_RETREAT_PRICE_ID
- JWT_RESET_TOKEN=$JWT_RESET_TOKEN
- JWT_EMAIL_CONFIRMATION_TOKEN=$JWT_EMAIL_CONFIRMATION_TOKEN
- REGISTRATION_DATA_EMAIL_ADDRESSES=$REGISTRATION_DATA_EMAIL_ADDRESSES
- RETREAT_MAX_TICKETS=$RETREAT_MAX_TICKETS
- USER_SESSION_SECRET=$USER_SESSION_SECRET
ports:
- "5001:5001"
- "9229:9229"
volumes:
- ./server/src:/app/src
client:
build: ./client
container_name: client
environment:
- VITE_API_BASE_URL=$API_BASE_URL
ports:
- "3000:3000"
volumes:
- ./client/src:/app/src
###############################################
# Uncomment below to run a local instance of #
# the documentation website on localhost:4000 #
###############################################
# docs:
# build: ./docs
# container_name: docs
# ports:
# - "4000:4000"
# volumes:
# - ./docs:/srv/jekyll