-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (61 loc) · 1.46 KB
/
Copy pathdocker-compose.yml
File metadata and controls
66 lines (61 loc) · 1.46 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
services:
app:
build: .
image: movewave-app:latest
container_name: movewave-app
ports:
- "8080:8080"
environment:
DB_URL: ${DB_URL}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
API_KEY: ${API_KEY}
JWT_SECRET: ${JWT_SECRET}
REDIRECT_URL: ${REDIRECT_URL}
FASTAPI_URL: ${FASTAPI_URL}
SPRING_PROFILES_ACTIVE: ${SPRING_PROFILES_ACTIVE}
depends_on:
- mysql
- redis
- movewave_python
movewave_python:
build:
context: ../movewave_python
container_name: movewave_python
ports:
- "5000:5000"
movewave_react:
build:
context: ../movewave_react
container_name: movewave_react
ports:
- "3000:3000"
mysql:
image: mysql:8.0
container_name: movewave-mysql
restart: always
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
TZ: Asia/Seoul
volumes:
- ./db/init/conf.d:/etc/mysql/conf.d
- ./db/init/init.d:/docker-entrypoint-initdb.d
redis:
image: redis:7.2
container_name: movewave-redis
restart: always
ports:
- "6379:6379"
volumes:
- redis-data:/data
volumes:
redis-data: