-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
108 lines (105 loc) · 3.71 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
services:
nginx:
container_name: nginx
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- /etc/nginx/conf.d/${SERVER_NGINX_CONF}:/etc/nginx/conf.d/${SERVER_NGINX_CONF}
- /etc/letsencrypt:/etc/letsencrypt
springboot_blue:
container_name: springboot_blue
image: ${DOCKER_USERNAME}/bottles-api:${DOCKER_TAG}
environment:
TZ: Asia/Seoul
DB_USER_NAME: ${DB_USER_NAME}
DB_PASSWORD: ${DB_PASSWORD}
DB_DATABASE: ${DB_DATABASE}
S3_ACCESS_KEY: ${S3_ACCESS_KEY}
S3_SECRET_KEY: ${S3_SECRET_KEY}
S3_BUCKET: ${S3_BUCKET}
S3_REGION: ${S3_REGION}
S3_PRESIGNED_URL_VALIDITY: ${S3_PRESIGNED_URL_VALIDITY}
ACCESS_TOKEN_SECRET_KEY: ${ACCESS_TOKEN_SECRET_KEY}
REFRESH_TOKEN_SECRET_KEY: ${REFRESH_TOKEN_SECRET_KEY}
NAVER_SMS_SERVICE_ID: ${NAVER_SMS_SERVICE_ID}
NAVER_SMS_API_KEY: ${NAVER_SMS_API_KEY}
NAVER_SMS_SECRET_KEY: ${NAVER_SMS_SECRET_KEY}
NAVER_SMS_SENDER_PHONE: ${NAVER_SMS_SENDER_PHONE}
IS_MATCHING_ACTIVE: ${IS_MATCHING_ACTIVE}
FCM_ADMIN_KEY_PATH: /app/config/bottles-firebase-adminsdk.json
SUPER_USER_NUMBER: ${SUPER_USER_NUMBER}
SUPER_USER_NUMBER_V2: ${SUPER_USER_NUMBER_V2}
BOTTLES_NUMBER: ${BOTTLES_NUMBER}
APPLE_KEY_ID: ${APPLE_KEY_ID}
APPLE_KEY_ID_PATH: /api/config/apple-auth-key.p8
APPLE_CLIENT_ID: ${APPLE_CLIENT_ID}
APPLE_TEAM_ID: ${APPLE_TEAM_ID}
LOGSTASH_HOST: ${LOGSTASH_HOST}
LOGSTASH_PORT: ${LOGSTASH_PORT}
SLACK_WEBHOOK_URL: ${SLACK_WEBHOOK_URL}
LOG_PATH: /app/logs
ports:
- "8080"
volumes:
- ${FCM_ADMIN_KEY_PATH}:/app/config/bottles-firebase-adminsdk.json
- ${APPLE_KEY_ID_PATH}:/api/config/apple-auth-key.p8
- ${LOG_PATH}:/app/logs
depends_on:
- db
springboot_green:
container_name: springboot_green
image: ${DOCKER_USERNAME}/bottles-api:${DOCKER_TAG}
environment:
TZ: Asia/Seoul
DB_USER_NAME: ${DB_USER_NAME}
DB_PASSWORD: ${DB_PASSWORD}
DB_DATABASE: ${DB_DATABASE}
S3_ACCESS_KEY: ${S3_ACCESS_KEY}
S3_SECRET_KEY: ${S3_SECRET_KEY}
S3_BUCKET: ${S3_BUCKET}
S3_REGION: ${S3_REGION}
S3_PRESIGNED_URL_VALIDITY: ${S3_PRESIGNED_URL_VALIDITY}
ACCESS_TOKEN_SECRET_KEY: ${ACCESS_TOKEN_SECRET_KEY}
REFRESH_TOKEN_SECRET_KEY: ${REFRESH_TOKEN_SECRET_KEY}
NAVER_SMS_SERVICE_ID: ${NAVER_SMS_SERVICE_ID}
NAVER_SMS_API_KEY: ${NAVER_SMS_API_KEY}
NAVER_SMS_SECRET_KEY: ${NAVER_SMS_SECRET_KEY}
NAVER_SMS_SENDER_PHONE: ${NAVER_SMS_SENDER_PHONE}
IS_MATCHING_ACTIVE: ${IS_MATCHING_ACTIVE}
FCM_ADMIN_KEY_PATH: /app/config/bottles-firebase-adminsdk.json
SUPER_USER_NUMBER: ${SUPER_USER_NUMBER}
SUPER_USER_NUMBER_V2: ${SUPER_USER_NUMBER_V2}
BOTTLES_NUMBER: ${BOTTLES_NUMBER}
APPLE_KEY_ID: ${APPLE_KEY_ID}
APPLE_KEY_ID_PATH: /api/config/apple-auth-key.p8
APPLE_CLIENT_ID: ${APPLE_CLIENT_ID}
APPLE_TEAM_ID: ${APPLE_TEAM_ID}
LOGSTASH_HOST: ${LOGSTASH_HOST}
LOGSTASH_PORT: ${LOGSTASH_PORT}
SLACK_WEBHOOK_URL: ${SLACK_WEBHOOK_URL}
LOG_PATH: /app/logs
ports:
- "8080"
volumes:
- ${FCM_ADMIN_KEY_PATH}:/app/config/bottles-firebase-adminsdk.json
- ${APPLE_KEY_ID_PATH}:/api/config/apple-auth-key.p8
- ${LOG_PATH}:/app/logs
depends_on:
- db
db:
container_name: mysql
image: mysql
restart: always
ports:
- "3306:3306"
environment:
TZ: Asia/Seoul
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USER_NAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
volumes:
- ./data/mysql/:/var/lib/mysql
- ./db/mysql/config:/etc/mysql/conf.d