-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (65 loc) · 1.69 KB
/
docker-compose.yml
File metadata and controls
70 lines (65 loc) · 1.69 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
version: '3.8'
services:
db:
image: mysql:8.0
container_name: rebloom-db
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ReBloom
volumes:
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
- ./db/my.conf:/etc/mysql/conf.d/my.cnf
- db_data:/var/lib/mysql
ports:
- "3306:3306"
networks:
- rebloom-net
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --skip-character-set-client-handshake
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: .
dockerfile: Dockerfile
container_name: rebloom-backend
environment:
DB_PASSWORD: ${DB_PASSWORD}
GMAIL_PASSWORD: ${GMAIL_PASSWORD}
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
JWT_SECRET: ${JWT_SECRET}
JWT_EXPIRATION: 3600000
SPRING_DATASOURCE_URL: jdbc:mysql://db:3306/ReBloom?serverTimezone=Asia/Seoul&useSSL=false&allowPublicKeyRetrieval=true
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: ${DB_PASSWORD}
SPRING_AI_OPENAI_API_KEY: ${OPENAI_API_KEY}
depends_on:
db:
condition: service_healthy
ports:
- "8080:8080"
networks:
- rebloom-net
nginx:
image: nginx:latest
container_name: rebloom-nginx
ports:
- "80:80"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./frontend/dist:/var/www/frontend
depends_on:
- backend
networks:
- rebloom-net
networks:
rebloom-net:
driver: bridge
volumes:
db_data: