-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose-prod.yml
68 lines (64 loc) · 1.96 KB
/
docker-compose-prod.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
version: '3'
services:
eatceed-backend:
image: hwangdaesun/gaebaljip-prod:latest
container_name: gaebaljip-spring
ports:
- 8080:8080
environment:
- RDS_DATABASE_ENDPOINT=${RDS_DATABASE_ENDPOINT}
- RDS_PORT=${RDS_PORT}
- RDS_DB_NAME=${RDS_DB_NAME}
- RDS_DATABASE_USERNAME=${RDS_DATABASE_USERNAME}
- RDS_DATABASE_PASSWORD=${RDS_DATABASE_PASSWORD}
- S3_BUCKET_NAME=${S3_BUCKET_NAME}
- CLOUD_AWS_ACCESS_KEY=${CLOUD_AWS_ACCESS_KEY}
- CLOUD_AWS_SECRET_KEY=${CLOUD_AWS_SECRET_KEY}
- JWT_SECRET=${JWT_SECRET}
- SES_MAIL_ADDRESS=${SES_MAIL_ADDRESS}
- ENCRYPTION_SPEC=${ENCRYPTION_SPEC}
- ENCRYPTION_SECRET=${ENCRYPTION_SECRET}
- ENCRYPTION_ALGORITHM=${ENCRYPTION_ALGORITHM}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_PASSWORD=${REDIS_PASSWORD}
- SCHEDULER_NUTRITION_CACHE_UPDATE=${SCHEDULER_NUTRITION_CACHE_UPDATE}
- APP_VERSION=${APP_VERSION}
networks:
- gaebaljip-network
restart: "always"
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: "always"
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
- ./resources/gaebaljip-prod-environment/grafana/provisioning/:/etc/grafana/provisioning/
environment:
- GF_SERVER_ROOT_URL=localhost:3000
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD}
depends_on:
- prometheus
networks:
- gaebaljip-network
prometheus:
image: prom/prometheus:latest
container_name: prometheus
restart: "always"
ports:
- "9090:9090"
volumes:
- ./resources/gaebaljip-prod-environment/prometheus/config:/etc/prometheus/
- prometheus-data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
networks:
- gaebaljip-network
volumes:
grafana-data:
prometheus-data:
networks:
gaebaljip-network: