-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (53 loc) · 1.52 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
version: "3"
services:
app:
container_name: spring-oauth2
build: .
environment:
- SPRING_PROFILES_ACTIVE=docker
- MYSQL_HOST=mysqldb:3306
- REDIRECT_URI=http://localhost:8080
- MYSQL_USER=root
- MYSQL_PASSWORD=112233
- GOOGLE_CLIENT_ID=643221851565-326g2gk94b2buq2doluuajvft7is720c.apps.googleusercontent.com
- GOOGLE_CLIENT_SECRET=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
- TOKEN_SECRET=04ca023b39512e46d0c2cf4b48d5aac61d34302994c87ed4eff225dcf3b0a218739f3897051a057f9b846a69ea2927a587044164b7bae5e1306219d50b588cb1
- TOKEN_EXPIRATION=86400000
- REFRESH_TOKEN_EXPIRATION=604800000
- MINIO_ENDPOINT=http://minio:9000
- MINIO_BUCKET_NAME=avatar
- MINIO_ACCESS_KEY=2toxGr9rkiDV77KG
- MINIO_SECRET_KEY=b1lnyNTlc0FJECAxCE4phPYrSKLcpx9G
ports:
- "8080:8080"
depends_on:
- mysqldb
- minio
mysqldb:
container_name: mysqldb
image: mysql:latest
restart: always
environment:
- MYSQL_ROOT_PASSWORD=112233
- MYSQL_DATABASE=oauth
ports:
- "3306:3306"
volumes:
- mysql:/var/lib/mysql
minio:
image: minio/minio
container_name: minio
ports:
- "9000:9000"
- "9001:9001"
volumes:
- s3minio:/data
environment:
- MINIO_ROOT_USER=tinhtute
- MINIO_ROOT_PASSWORD=vodichtoanvutru
- MINIO_ACCESS_KEY=2toxGr9rkiDV77KG
- MINIO_SECRET_KEY=b1lnyNTlc0FJECAxCE4phPYrSKLcpx9G
command: server --console-address ":9001" /data
volumes:
mysql:
s3minio: