-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (27 loc) · 924 Bytes
/
docker-compose.yml
File metadata and controls
30 lines (27 loc) · 924 Bytes
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
services:
chat-spring-boot:
build: .
ports:
- "8080:8080"
environment:
# JWT config
- JWT_TIME_TO_LIVE=3600
- JWT_SECRET_KEY=your_jwt_secret_key_here
# Database config
# Modified to connect to your existing MySQL service
- DB_URL=jdbc:mysql://host.docker.internal:3306/demo?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
- DB_USERNAME=root
- DB_PASSWORD=secret
- DB_DRIVER=com.mysql.cj.jdbc.Driver
# Hibernate config
- HIBERNATE_UPDATE_AUTO_UPDATE_DDL=update
- SHOW_SQL=true
- HIBERNATE_DIALECT=org.hibernate.dialect.MySQL8Dialect
# Cloudinary config
- CLOUDINARY_CLOUD_NAME=de9giqm2a
- CLOUDINARY_API_KEY=675819668632521
- CLOUDINARY_API_SECRET=tMluZdExZRNE_P5B8f1iVrZH3Wg
- CLOUDINARY_SECURE=true
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"