-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
142 lines (136 loc) · 3.66 KB
/
docker-compose.yaml
File metadata and controls
142 lines (136 loc) · 3.66 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
version: '3'
services:
mariadb:
container_name: ${DB_HOST}
image: mariadb
restart: always
environment:
MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MARIADB_DATABASE: ${DB_NAME}
MARIADB_USER: ${DB_USER}
MARIADB_PASSWORD: ${DB_PASSWORD}
expose:
- 3306
volumes:
- type: bind
source: $HOME/kiwi_data/DB
target: /var/lib/mysql
networks:
- jg
redis:
container_name: ${REDIS_HOST}
image: redis:7-alpine
restart: always
expose:
- 6379
volumes:
- $HOME/kiwi_data/redis:/data
networks:
- jg
backend:
container_name: backend
build:
context: ./backend
dockerfile: Dockerfile
restart: always
depends_on:
- mariadb
- redis
- jaeger
environment:
SERVER_HOST: ${SERVER_HOST}
CONFIRM_MAIL_TITLE: ${CONFIRM_MAIL_TITLE}
DOMAIN: ${FINAL_URL}
UPLOAD_DIR: /uploadImages/
ADMIN_LEVEL: ${ADMIN_PERMIT_LEVEL}
ADMIN_EMAIL: ${ADMIN_EMAIL}
SPRING_DATASOURCE_URL: ${DB_URL}
SPRING_DATASOURCE_USERNAME: ${DB_USER}
SPRING_DATASOURCE_PASSWORD: ${DB_PASSWORD}
GOOGLE_MAIL_UNAME: ${GOOGLE_MAIL_UNAME}
GOOGLE_MAIL_PWD: ${GOOGLE_MAIL_PWD}
GOOGLE_AUTH_CLIENT_ID: ${GOOGLE_AUTH_CLIENT_ID}
GOOGLE_ACCESS_SECRET: ${GOOGLE_ACCESS_SECRET}
GOOGLE_AUTH_CALLBACK_URL: ${GOOGLE_AUTH_CALLBACK_URL}
REDIS_HOST: ${REDIS_HOST}
OTEL_METRICS_EXPORTER: none
OTEL_SERVICE_NAME: ${APP_NAME}
OTEL_EXPORTER_OTLP_ENDPOINT: ${JAEGER_ENDPOINT}
OTEL_EXPORTER_OTLP_PROTOCOL: grpc
volumes:
- type: bind
source: ./backend/src
target: /my_backend/src
- type: bind
source: $HOME/kiwi_data/upload_images
target: /uploadImages
expose:
- 8080
networks:
- jg
frontend:
container_name: frontend
restart: always
environment:
NODE_ENV: ${FRONT_MODE}
REACT_APP_MY_LOCATE_X: ${MY_LOCATE_X}
REACT_APP_MY_LOCATE_Y: ${MY_LOCATE_Y}
REACT_APP_KAKAO_MAP_KEY: ${KAKAO_MAP_KEY}
REACT_APP_PHONE_NUMBER: ${APP_PHONE_NUMBER}
REACT_APP_PHONE_INFO: ${APP_PHONE_INFO}
REACT_APP_LOCATION: ${APP_LOCATION}
REACT_APP_NAME: ${APP_NAME}
REACT_APP_HOST: ${SERVER_HOST}
CHOKIDAR_USEPOLLING: ${CHOKIDAR_USEPOLLING}
WDS_SOCKET_PORT: ${WDS_SOCKET_PORT}
build:
context: ./front
dockerfile: Dockerfile
networks:
- jg
expose:
- 3000
volumes:
- ./front/src:/my_front/src
nginx:
container_name: proxy
restart: always
ports:
- 80:80
- 443:443
depends_on:
- backend
- frontend
environment:
FINAL_URL: ${FINAL_URL}
SERVER_HOST: ${SERVER_HOST}
build: ./proxy
networks:
- jg
volumes:
- /etc/localtime:/etc/localtime:ro
- ./proxy/templates:/templates:ro
jaeger:
container_name: ${JAEGER_HOST}
image: jaegertracing/all-in-one:1.54
restart: always
environment:
# - COLLECTOR_ZIPKIN_HOST_PORT=:9411
- COLLECTOR_OTLP_ENABLED=true
ports:
- "6831/udp" # accept jaeger.thrift over compact thrift protocol
- "6832/udp" # accept jaeger.thrift over binary thrift protocol
- "5778" # serve configs
- "16686:16686" # serve frontend
- "4317" # accept OpenTelemetry Protocol (OTLP) over gRPC, if enabled
- "4318" # accept OpenTelemetry Protocol (OTLP) over HTTP, if enabled
- "14250" # accept model.proto
- "14268" # accept jaeger.thrift directly from clients
- "14269"
- "9411" # Zipkin compatible endpoint
networks:
- jg
networks:
jg:
name: my_network
driver: bridge