-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
38 lines (35 loc) · 1.06 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
version: '3.8'
services:
app:
image: rankitrun/rankitrun-be:latest
platform: linux/amd64
environment:
- DATABASE_URL=${MYSQL_DATABASE_URL}
- USERNAME=${MYSQL_USERNAME}
- PASSWORD=${MYSQL_PASSWORD}
- SECURITY_CLIENT_ID=${SECURITY_CLIENT_ID}
- SECURITY_SECRET_ID=${SECURITY_SECRET_ID}
- GITHUB_TOKEN=${GITHUB_TOKEN}
- UNIV_API_KEY=${UNIV_API_KEY}
- JWT_KEY=${JWT_KEY}
- FE_URL=${FE_URL}
- LOGIN_SUCCESS_REDIRECT_URL=${LOGIN_SUCCESS_REDIRECT_URL}
- ACCESS_TOKEN_VALIDITY_SECONDS=${ACCESS_TOKEN_VALIDITY_SECONDS}
- REFRESH_TOKEN_VALIDITY_SECONDS=${REFRESH_TOKEN_VALIDITY_SECONDS}
- MAIL_HOST=${MAIL_HOST}
- MAIL_PORT=${MAIL_PORT}
- RANKIT_MAIL=${RANKIT_MAIL}
- RANKIT_PWD=${RANKIT_PWD}
depends_on:
- db
ports:
- "8080:8080"
db:
image: mysql:8.0
environment:
- MYSQL_DATABASE=rankit
- MYSQL_ROOT_USER=${MYSQL_USERNAME}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD}
ports:
- "3306:3306"